mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
@@ -973,12 +973,12 @@ jobs:
|
||||
- name: Publish to npm
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
NPM_CONFIG_USERCONFIG: ${{ github.workspace }}/common/config/rush/.npmrc-publish
|
||||
run: |
|
||||
if [ -z "$NPM_TOKEN" ]; then
|
||||
echo "::error::NPM_TOKEN secret is not set. Add it in repository Settings > Secrets and variables > Actions."
|
||||
exit 1
|
||||
fi
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "$HOME/.npmrc"
|
||||
REF="${{ github.event.inputs.ref || github.ref }}"
|
||||
VERSION="${REF#refs/tags/v}"
|
||||
VERSION="${VERSION#v}"
|
||||
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
echo "::error::NPM_TOKEN secret is not set. Add it in repository Settings > Secrets and variables > Actions."
|
||||
exit 1
|
||||
fi
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
||||
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> "$HOME/.npmrc"
|
||||
REF="${{ github.event.inputs.ref }}"
|
||||
VERSION="${REF#refs/tags/v}"
|
||||
VERSION="${VERSION#v}"
|
||||
|
||||
Reference in New Issue
Block a user