File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3030 - name : Setup Node.js
3131 uses : actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6.3.0
3232 with :
33- node-version : 20
33+ node-version : 24 # Needed for npm@11 for Trusted Publishing
3434 registry-url : " https://registry.npmjs.org"
3535 cache : " yarn"
3636 cache-dependency-path : " yarn.lock"
5555 id : package-version
5656 run : echo "version=$(jq -r .version packages/vscode-extension/package.json)" >> $GITHUB_OUTPUT
5757
58+ - name : Test OIDC Token
59+ if : steps.version.outputs.NEXT_VERSION
60+ run : |
61+ TOKEN=$(curl -s -H "Authorization: bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \
62+ "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=npm" | jq -r '.value')
63+ [ -n "$TOKEN" ] && echo "✅ OIDC working" || exit 1
64+
5865 - name : Create Release Pull Request or Publish to npm
5966 id : changesets
6067 uses : changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf # v1.7.0
You can’t perform that action at this time.
0 commit comments