Skip to content

Commit c73f364

Browse files
authored
chore: update release action with trusted publishing (#59)
1 parent dc40936 commit c73f364

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,12 @@ jobs:
2424
release:
2525
name: Release
2626
runs-on: ubuntu-latest
27-
needs: [authorize]
27+
needs: [ authorize ]
28+
permissions:
29+
id-token: write
2830
steps:
2931
- name: Checkout
30-
uses: actions/checkout@v2
32+
uses: actions/checkout@v4
3133

3234
# Needed for lerna version to determine last tag
3335
- name: Fetch
@@ -40,9 +42,13 @@ jobs:
4042
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
4143

4244
- name: Setup Node
43-
uses: actions/setup-node@v2
45+
uses: actions/setup-node@v4
4446
with:
45-
node-version: '16'
47+
node-version: '20'
48+
registry-url: 'https://registry.npmjs.org'
49+
50+
- name: Update npm
51+
run: npm install -g npm@latest
4652

4753
- name: Install
4854
run: yarn install --frozen-lockfile
@@ -76,12 +82,6 @@ jobs:
7682
--loglevel silly \
7783
--yes
7884
79-
- name: Setup NPM Token
80-
if: ${{ github.event.inputs.dryRun == 'false'}}
81-
env:
82-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
83-
run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
84-
8585
- name: Release
8686
if: ${{ github.event.inputs.dryRun == 'false'}}
8787
env:

0 commit comments

Comments
 (0)