Skip to content

Commit 931a9bb

Browse files
committed
Try to fix finding the NPM token
1 parent b4390de commit 931a9bb

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

.github/scripts/publish-npm-binary.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ cp "target/${TARGET}/release/${binary_name}" "${NPM_DIR}/${node_pkg}/bin/"
5656

5757
# Publish package
5858
cd "${NPM_DIR}/${node_pkg}"
59+
npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
5960
npm publish --access public --dry-run
6061

6162
echo "Successfully published ${node_pkg}"

.github/workflows/release_npm.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
cd npm/celq
108108
yarn install # requires optional dependencies to be present in the registry
109109
yarn build
110+
npm config set //registry.npmjs.org/:_authToken "$NPM_TOKEN"
110111
npm publish --access public --dry-run
111112
env:
112113
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)