File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 2121 - " [0-9]+.x"
2222
2323jobs :
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
You can’t perform that action at this time.
0 commit comments