Skip to content

Commit c755f5d

Browse files
committed
enable OIDC
1 parent 22672bc commit c755f5d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,11 @@ jobs:
1515
build:
1616
name: Build
1717
runs-on: ubuntu-latest
18-
steps:
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
id-token: write
22+
steps:
1923
- uses: actions/checkout@v3
2024
with:
2125
fetch-depth: 0
@@ -24,6 +28,8 @@ jobs:
2428
- run: pnpm build
2529
- run: pnpm circular
2630
- run: pnpm docgen
31+
- name: Upgrade npm for OIDC support
32+
run: npm install -g npm@latest
2733
- name: Create Release Pull Request or Publish
2834
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
2935
id: changesets
@@ -32,4 +38,3 @@ jobs:
3238
publish: pnpm changeset publish
3339
env:
3440
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)