Skip to content

Commit 172c5cd

Browse files
committed
fix: expand env vars in npmrc-public before publishing
1 parent 9dfe59c commit 172c5cd

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,9 @@ jobs:
3838
with:
3939
output-modes: npm
4040

41-
- name: Debug npmrc-public
42-
run: cat .npmrc-public | sed 's/_authToken=.*/authToken=***REDACTED***/'
43-
4441
- name: Publish to Artifactory npm-public
45-
run: npm publish
42+
run: |
43+
sed -i "s|\${ARTIFACTORY_USERNAME}|${ARTIFACTORY_USERNAME}|g; s|\${ARTIFACTORY_PASSWORD_BASE64}|${ARTIFACTORY_PASSWORD_BASE64}|g" .npmrc-public
44+
npm publish
4645
env:
4746
NPM_CONFIG_USERCONFIG: ${{ github.workspace }}/.npmrc-public

0 commit comments

Comments
 (0)