Skip to content

Commit 0be83f0

Browse files
committed
ci: update npm publish workflow to use direct npm commands and set auth token
1 parent aa8eb52 commit 0be83f0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/node-publish.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
3131
yarn build
3232
33-
# print the NPM user name for validation
33+
npm config set registry //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
34+
3435
npm whoami
3536
3637
VERSION=$(node -p "require('./package.json').version" )
@@ -44,7 +45,8 @@ jobs:
4445
4546
echo "Publishing $VERSION with $NPM_TAG tag."
4647
47-
yarn workspace @imagekit/editor npm publish --tag "$NPM_TAG" --provenance --access public
48+
cd packages/imagekit-editor
49+
npm publish --tag "$NPM_TAG" --provenance --access public
4850
4951
env:
5052
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)