Skip to content

Commit 84d0d66

Browse files
committed
feat: publish using node@24
1 parent 3192116 commit 84d0d66

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

.github/workflows/ci.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
test:
1717
name: Node ${{ matrix.node }} and ${{ matrix.os }}
1818
timeout-minutes: 30
19+
env:
20+
COREPACK_DEFAULT_TO_LATEST: '0'
1921
strategy:
2022
fail-fast: false
2123
matrix:
@@ -28,7 +30,7 @@ jobs:
2830
pull-requests: write # to be able to comment on released pull requests
2931
id-token: write # required for npm trusted publishing (OIDC)
3032
steps:
31-
- uses: actions/checkout@v5
33+
- uses: actions/checkout@v6
3234
# https://github.com/nodejs/node-gyp#installation
3335
- name: Use Python 3.11
3436
uses: actions/setup-python@v6
@@ -46,9 +48,8 @@ jobs:
4648
run: |
4749
sudo apt update
4850
sudo apt install -y libcairo2-dev libjpeg-dev libpango1.0-dev libgif-dev librsvg2-dev
49-
- uses: pnpm/action-setup@v4
50-
with:
51-
run_install: false
51+
- name: Enable Corepack
52+
run: corepack enable pnpm
5253
- name: Use Node.js ${{ matrix.node }}
5354
uses: actions/setup-node@v6
5455
with:
@@ -64,10 +65,11 @@ jobs:
6465
- name: Run Tests
6566
run: pnpm test
6667
- name: Coverage
67-
if: matrix.os == 'ubuntu-latest' && matrix.node == 22 # only run once
68+
if: matrix.os == 'ubuntu-latest' && matrix.node == 24 # only run once
6869
run: pnpm test-coverage
6970
- name: Maybe Release
70-
if: matrix.os == 'ubuntu-latest' && matrix.node == 22 && github.event_name == 'push' && github.ref == 'refs/heads/main'
71+
if: matrix.os == 'ubuntu-latest' && matrix.node == 24 && github.event_name == 'push' && github.ref == 'refs/heads/main'
7172
env:
7273
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
74+
COREPACK_ENABLE_STRICT: '0'
7375
run: pnpm --dir publish install --ignore-workspace --frozen-lockfile && ./publish/node_modules/.bin/semantic-release

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"license": "MIT",
1010
"main": "./dist/ncc/index.js",
1111
"bin": {
12-
"ncc": "./dist/ncc/cli.js"
12+
"ncc": "dist/ncc/cli.js"
1313
},
1414
"files": [
1515
"dist"

0 commit comments

Comments
 (0)