Skip to content

Commit e9144b5

Browse files
committed
ci(workflows): fix environment variable usage
1 parent efd32b2 commit e9144b5

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/continuous-deployment.yml

+5
Original file line numberDiff line numberDiff line change
@@ -98,13 +98,16 @@ jobs:
9898
name: Build project
9999
run: yarn workspace ${{ needs.deployment-info.outputs.workspace }} build
100100
env:
101+
NODE_ENV: production
101102
NODE_OPTIONS: -r tsconfig-paths/register
102103
- id: publish-to-gpr
103104
name: Publish package [GPR]
104105
working-directory: ${{ needs.deployment-info.outputs.directory }}
105106
run: npm publish ${{ needs.deployment-info.outputs.publish_args }}
106107
env:
107108
NODE_AUTH_TOKEN: ${{ secrets.PAT_GPR_FLDV_ADMIN }}
109+
NODE_ENV: production
110+
NODE_OPTIONS: -r tsconfig-paths/register
108111
- id: setup-npmrc-npm
109112
name: Setup .npmrc file [NPM]
110113
uses: actions/setup-node@v2
@@ -119,6 +122,8 @@ jobs:
119122
run: npm publish ${{ needs.deployment-info.outputs.publish_args }}
120123
env:
121124
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_FLDV }}
125+
NODE_ENV: production
126+
NODE_OPTIONS: -r tsconfig-paths/register
122127
update-production-branch:
123128
name: Update production branch
124129
needs: publish-package

0 commit comments

Comments
 (0)