Skip to content

Commit e0ef122

Browse files
committed
ci: attempt npm --dry-run
Ticket: DX-2084
1 parent 3765317 commit e0ef122

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

.github/workflows/release.yaml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,26 @@ on:
2121
- "[0-9]+.x"
2222

2323
jobs:
24-
verify-oidc:
24+
test-oidc-publish:
2525
runs-on: ubuntu-latest
2626
permissions:
2727
id-token: write
2828
contents: read
2929
steps:
30-
- name: Show OIDC token
30+
- uses: actions/checkout@v4
31+
- uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
registry-url: https://registry.npmjs.org/
35+
- name: Verify OIDC authentication with npm
3136
run: |
32-
echo "OIDC token exists: $ACTIONS_ID_TOKEN_REQUEST_TOKEN"
37+
echo "Running npm publish dry-run to test OIDC auth..."
38+
npm publish --dry-run --provenance
3339
3440
release:
35-
uses: semantic-release-action/typescript/.github/workflows/release.yml@1d40c29e2d500f3bcceeb13f95d26a3a1b571f51 # v3.0.20
41+
needs: [test-oidc-publish]
42+
uses: semantic-release-action/typescript/.github/workflows/release.yml@1d40c29e2d500f3bcceeb13f95d26a3a1b571f51
3643
secrets:
37-
npm-token: ${{ secrets.NPM_TOKEN }}
44+
npm-token: "FAKE_NPM_TOKEN_FOR_SEMANTIC_RELEASE"
3845
with:
3946
disable-semantic-release-git: true

0 commit comments

Comments
 (0)