Skip to content

Commit 26d2128

Browse files
authored
Upgrade GitHub Actions and add npm trusted publishing
Updated GitHub Actions workflow to use newer versions of actions and Node.js. Added step to enable npm trusted publishing.
1 parent c7c7dd2 commit 26d2128

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,26 @@ jobs:
1717
if: github.repository_owner == 'rphlmr'
1818
steps:
1919
- name: ⬇️ Checkout repo
20-
uses: actions/checkout@v4
20+
uses: actions/checkout@v6
2121
with:
2222
fetch-depth: 0
2323

2424
- name: 👷 Install pnpm
25-
uses: pnpm/action-setup@v4
25+
uses: pnpm/action-setup@v6
2626

2727
- name: ⎔ Setup node
28-
uses: actions/setup-node@v4
28+
uses: actions/setup-node@v6
2929
with:
30-
node-version: "22.x"
30+
node-version: "24"
3131
registry-url: "https://registry.npmjs.org"
3232
cache: "pnpm"
3333

3434
- name: 📥 Install dependencies
3535
run: pnpm install --frozen-lockfile
3636

37+
- name: ⬆️ Enable npm trusted publishing
38+
run: npm install -g npm@^11.5.1
39+
3740
- name: 🦋 Create Release Pull Request or Publish
3841
id: changesets
3942
uses: changesets/action@v1
@@ -44,5 +47,3 @@ jobs:
4447
commit: "chore: release package"
4548
env:
4649
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
48-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)