Skip to content

Commit 2a35cff

Browse files
committed
ci: set NODE_ENV in package publishing workflow
1 parent 165720e commit 2a35cff

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/publish-npm-package.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types: [created]
66
workflow_dispatch:
77

8+
env:
9+
NODE_ENV: production
10+
811
jobs:
912
build-npmjs:
1013
runs-on: ubuntu-latest
@@ -15,9 +18,6 @@ jobs:
1518
with:
1619
node-version: '10.x'
1720
registry-url: 'https://registry.npmjs.org'
18-
- name: Install dependencies & build (mock)
19-
working-directory: ./mock
20-
run: npm install
2121
- run: npm ci
2222
- run: npm publish
2323
env:
@@ -34,9 +34,6 @@ jobs:
3434
with:
3535
node-version: '10.x'
3636
registry-url: 'https://npm.pkg.github.com'
37-
- name: Install dependencies & build (mock)
38-
working-directory: ./mock
39-
run: npm install
4037
- run: npm ci
4138
- run: npm publish
4239
env:

0 commit comments

Comments
 (0)