Skip to content

Commit 7bda76a

Browse files
committed
chore(gha): bump Node.js and external actions
Bumps Node.js to build the package → 24, and external actions. No longer specifies the version of `pnpm` to the setup action to respect the `packageManager` prop in `package.json`. Appends `--tag latest` to the `pnpm publish` command, because it might fail without the option.
1 parent 5a5442d commit 7bda76a

1 file changed

Lines changed: 5 additions & 7 deletions

File tree

.github/workflows/publish-package.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,16 +18,15 @@ permissions:
1818
packages: write
1919

2020
env:
21-
node-version: 22
22-
pnpm-version: 10
21+
node-version: 24
2322

2423
jobs:
2524
build-and-publish:
2625
runs-on: ubuntu-latest
2726

2827
steps:
2928
- name: Checkout
30-
uses: actions/checkout@v4
29+
uses: actions/checkout@v6
3130

3231
- name: Get short commit hash
3332
id: commit-hash
@@ -51,11 +50,10 @@ jobs:
5150

5251
- name: Install pnpm ${{ env.pnpm-version }}
5352
uses: pnpm/action-setup@v4
54-
with:
55-
version: ${{ env.pnpm-version }}
53+
# version is omitted here, because package.json specifies it
5654

5755
- name: Setup Node.js ${{ env.node-version }}
58-
uses: actions/setup-node@v4
56+
uses: actions/setup-node@v6
5957
with:
6058
node-version: ${{ env.node-version }}
6159
cache: pnpm
@@ -69,4 +67,4 @@ jobs:
6967
- name: Build and publish
7068
env:
7169
NODE_AUTH_TOKEN: ${{ secrets.npm-token }}
72-
run: pnpm publish --no-git-checks
70+
run: pnpm publish --no-git-checks --tag latest

0 commit comments

Comments
 (0)