Skip to content

Commit b9a47b2

Browse files
authored
Merge pull request #1148 from Shopify/gg-fix-release
Bump node version to 24 for release step
2 parents 54304f6 + bc29bbf commit b9a47b2

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
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"
@@ -55,6 +55,13 @@ jobs:
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

0 commit comments

Comments
 (0)