Skip to content

Commit ff533ff

Browse files
committed
test npm token
1 parent ed85405 commit ff533ff

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/publish-alpha.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,15 @@ jobs:
4646
git config --global user.name "codecademydev"
4747
git config --global push.default current
4848
49+
- name: Check if able to publish changes
50+
run: npm whoami # will throw and exit if npm is not ready to publish
51+
env:
52+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53+
4954
- name: Publish alpha packages
5055
run: |
5156
SHORT_SHA=${GITHUB_SHA:0:6}
52-
yarn lerna publish --exact --yes --include-merged-tags --no-push --no-git-reset --conventional-commits --conventional-prerelease --preid=alpha.${SHORT_SHA} --dist-tag=alpha.${SHORT_SHA}
57+
yarn lerna publish --no-verify-access --exact --yes --include-merged-tags --no-push --no-git-reset --conventional-commits --conventional-prerelease --preid=alpha.${SHORT_SHA} --dist-tag=alpha.${SHORT_SHA}
5358
env:
5459
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5560

0 commit comments

Comments
 (0)