We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ac2c81c + 3ce8586 commit 1fdd4beCopy full SHA for 1fdd4be
.github/workflows/gh-publish.yml
@@ -37,6 +37,18 @@ jobs:
37
git remote set-url origin https://x-access-token:${GITHUB_TOKEN}@github.com/$GITHUB_REPOSITORY
38
env:
39
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40
+ - name: Validate NPM Token
41
+ run: |
42
+ echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > .npmrc
43
+ npm whoami
44
+ if [ $? -ne 0 ]; then
45
+ echo "::error::NPM token validation failed. Please check your NPM_PUBLISH_TOKEN secret."
46
+ exit 1
47
+ fi
48
+ echo "NPM token validated successfully."
49
+ rm -f .npmrc
50
+ env:
51
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
52
- name: Set Current Version
53
run: |
54
CURRENT_VERSION=$(node -p 'require("./lerna.json").version')
0 commit comments