Skip to content

Commit ca06f2c

Browse files
committed
fix: trusted publishing
1 parent 6dcb12d commit ca06f2c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ jobs:
3030
- name: Install dependencies
3131
run: npm install
3232

33+
- name: Upgrade npm for trusted publishing
34+
run: npm install -g npm@^11.5.1
35+
3336
- name: Install playwright browsers for e2e tests
3437
run: npx playwright install chromium --with-deps
3538

@@ -94,9 +97,13 @@ jobs:
9497
# that actions/setup-node can write into ~/.npmrc when registry-url is configured.
9598
npm config set registry "https://registry.npmjs.org/"
9699
npm config delete //registry.npmjs.org/:_authToken || true
100+
npm config set provenance true
97101
98102
echo "npm registry: $(npm config get registry)"
99103
echo "npm userconfig: $(npm config get userconfig)"
104+
echo "npm provenance: $(npm config get provenance)"
105+
if [[ -n "${ACTIONS_ID_TOKEN_REQUEST_URL:-}" ]]; then echo "ACTIONS_ID_TOKEN_REQUEST_URL is set."; else echo "ACTIONS_ID_TOKEN_REQUEST_URL is NOT set."; fi
106+
if [[ -n "${ACTIONS_ID_TOKEN_REQUEST_TOKEN:-}" ]]; then echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN is set."; else echo "ACTIONS_ID_TOKEN_REQUEST_TOKEN is NOT set."; fi
100107
101108
npx nx release --yes 2>&1 | tee nx-release.log
102109

0 commit comments

Comments
 (0)