Skip to content

Commit a21ce01

Browse files
authored
Merge pull request #1265 from ReactTooltip/master
Sync Copilot fix branch with Master
2 parents bc8a20c + f18cb72 commit a21ce01

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/beta-release.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,22 @@ on:
66
jobs:
77
beta_release:
88
runs-on: ubuntu-latest
9-
env:
10-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
11-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
9+
permissions:
10+
contents: read
11+
id-token: write
1212
steps:
1313
- uses: actions/checkout@v4
1414
with:
1515
ref: ${{ github.head_ref }}
1616
- uses: actions/setup-node@v4
1717
with:
18-
node-version: '16.x'
18+
node-version: '20.x'
1919
registry-url: 'https://registry.npmjs.org'
2020
cache: 'yarn'
2121

2222
- name: Install dev dependencies
2323
run: yarn install
2424

25-
- name: Setup npm credentials file
26-
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> .npmrc
27-
2825
- name: Setup git credentials
2926
run: |
3027
git config --global user.name 'Auto Release Bot'
@@ -39,9 +36,7 @@ jobs:
3936
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}
4037

4138
- name: Release a new beta version
42-
run: npm publish --tag beta
43-
env:
44-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
39+
run: npm publish --tag beta --provenance --access public
4540

4641
- uses: actions/github-script@v6
4742
with:

0 commit comments

Comments
 (0)