Skip to content

Commit e6737eb

Browse files
committed
Setting NODE_ENV for the whole job
1 parent 9734cde commit e6737eb

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@ jobs:
3636
build:
3737
runs-on: ubuntu-latest
3838
needs: specs
39+
env:
40+
NODE_ENV: production
41+
3942
steps:
4043
- name: Check out your repository using git
4144
uses: actions/checkout@v3
@@ -51,8 +54,6 @@ jobs:
5154

5255
- name: Build React
5356
run: npm run build
54-
env:
55-
NODE_ENV: production
5657

5758
- name: Upload artifact
5859
uses: actions/upload-pages-artifact@v1

0 commit comments

Comments
 (0)