Skip to content

Commit c2fb742

Browse files
authored
chore: fix release pipeline (#15500)
1 parent d516f8f commit c2fb742

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ on:
77

88
concurrency: ${{ github.workflow }}-${{ github.ref }}
99

10+
permissions:
11+
contents: write
12+
pull-requests: write
13+
id-token: write
14+
1015
jobs:
1116
release:
1217
name: Version packages PR
@@ -20,13 +25,8 @@ jobs:
2025
with:
2126
node-version: 20
2227

23-
- name: Creating .npmrc
24-
run: |
25-
cat << EOF > "$HOME/.npmrc"
26-
//registry.npmjs.org/:_authToken=$NPM_TOKEN
27-
EOF
28-
env:
29-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
28+
- name: Ensure npm 11.5.1+ for OIDC
29+
run: npm install -g npm@latest
3030

3131
- name: Install Dependencies
3232
run: yarn
@@ -43,7 +43,6 @@ jobs:
4343
createGithubReleases: false
4444
publish: yarn changeset publish
4545
env:
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4746
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4847

4948
- name: Trigger draft release generation

0 commit comments

Comments
 (0)