Skip to content

Commit 29dfed2

Browse files
committed
Prevent lerna from using stale tokens
1 parent 2c03a70 commit 29dfed2

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/autopublish.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ jobs:
2727
uses: actions/setup-node@v4
2828
with:
2929
node-version: 20.x
30-
registry-url: https://registry.npmjs.org
3130

3231
- name: Install dependencies
3332
run: |
@@ -54,6 +53,9 @@ jobs:
5453
env:
5554
NPM_CONFIG_PROVENANCE: true
5655
NPM_CONFIG_REGISTRY: https://registry.npmjs.org/
56+
NPM_CONFIG_ACCESS: public
57+
NPM_CONFIG_TOKEN: ""
58+
NODE_AUTH_TOKEN: ""
5759

5860
- name: Push changes
5961
run: |

scripts/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,7 @@
33
export NPM_CONFIG_PROVENANCE=${NPM_CONFIG_PROVENANCE:-true}
44
export NPM_CONFIG_REGISTRY=${NPM_CONFIG_REGISTRY:-https://registry.npmjs.org/}
55
export NPM_CONFIG_ACCESS=${NPM_CONFIG_ACCESS:-public}
6+
export NPM_CONFIG_TOKEN=${NPM_CONFIG_TOKEN:-}
7+
export NODE_AUTH_TOKEN=${NODE_AUTH_TOKEN:-}
68

7-
./node_modules/.bin/lerna publish from-git --yes --registry "$NPM_CONFIG_REGISTRY" --no-push --no-verify-access
9+
./node_modules/.bin/lerna publish from-git --yes --registry "$NPM_CONFIG_REGISTRY" --no-push --no-verify-access --access "$NPM_CONFIG_ACCESS" --provenance

0 commit comments

Comments
 (0)