Skip to content

Commit 4873d1b

Browse files
Merge pull request #606 from Shopify/rd/fix-publish
prepare for OIDC
2 parents aa74fc8 + 1505c5f commit 4873d1b

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,14 @@ jobs:
1818
needs: [checks]
1919
runs-on: ubuntu-latest
2020
timeout-minutes: 5
21+
permissions:
22+
contents: read
23+
id-token: write # Required for OIDC authentication
2124
steps:
2225
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2326
- uses: ./.github/workflows/actions/prepare
2427
- run: pnpm run type-check
2528
- run: pnpm run build
2629
- run: pnpm run deploy
2730
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
31+
NPM_TOKEN: '' # Empty string forces OIDC

.github/workflows/preview-versions.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
name: Preview 🔮
1212
runs-on: ubuntu-latest
1313
timeout-minutes: 5
14+
permissions:
15+
contents: read
16+
id-token: write # Required for OIDC authentication
1417
steps:
1518
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1619
- uses: ./.github/workflows/actions/prepare
@@ -33,4 +36,4 @@ jobs:
3336
pnpm changeset publish --tag preview --no-git-tag
3437
env:
3538
GITHUB_TOKEN: ${{ secrets.SHOPIFY_GH_ACCESS_TOKEN }}
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
NPM_TOKEN: '' # Empty string forces OIDC

0 commit comments

Comments
 (0)