Skip to content

Commit 17759b1

Browse files
authored
chore: enable trusted package publishing (#236)
1 parent 494d3da commit 17759b1

File tree

2 files changed

+10
-7
lines changed

2 files changed

+10
-7
lines changed

.github/workflows/cleanup.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node
2121
uses: actions/setup-node@v3
2222
with:
23-
node-version: 22
23+
node-version: 24
2424
cache: "yarn"
2525

2626
- name: Install Dependencies

.github/workflows/release.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,28 @@ on:
77
- main
88
workflow_dispatch:
99

10+
permissions:
11+
id-token: write # Required for OIDC
12+
contents: write # required for committing the version bump
13+
1014
jobs:
1115
Release:
1216
name: 🚀 Release
1317
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged && startsWith(github.head_ref, 'release-please--branches--main')
1418
runs-on: ubuntu-latest
1519
steps:
16-
- uses: actions/checkout@v3
20+
- uses: actions/checkout@v4
1721
with:
1822
fetch-depth: 0
1923
- name: Setup Node
20-
uses: actions/setup-node@v3
24+
uses: actions/setup-node@v4
2125
with:
22-
node-version: 18
26+
node-version: 24
2327
cache: "yarn"
28+
registry-url: "https://registry.npmjs.org"
2429

2530
- name: Install Dependencies
2631
run: yarn install --immutable
2732

2833
- name: Publish package
29-
run: |
30-
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
31-
npm publish
34+
run: npm publish

0 commit comments

Comments
 (0)