Skip to content

Commit 513c7fe

Browse files
committed
ci(node): switch workflow to npm and bump GitHub Actions
Use npm ci/build with Node from package.json Volta, and upgrade checkout/setup-node to v7.
1 parent 42d71e7 commit 513c7fe

1 file changed

Lines changed: 8 additions & 16 deletions

File tree

‎.github/workflows/node.js.yml‎

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
1+
# This workflow will do a clean install of node dependencies and build the source code.
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
33

44
name: Node.js CI
@@ -14,20 +14,12 @@ jobs:
1414

1515
runs-on: ubuntu-latest
1616

17-
strategy:
18-
matrix:
19-
node-version: [24.x]
20-
2117
steps:
22-
- uses: actions/checkout@v4
23-
- name: Enable Corepack
24-
# Must run before setup-node's yarn cache: resolves Yarn from packageManager, not v1.
25-
# See: https://github.com/actions/setup-node/issues/1027
26-
run: corepack enable
27-
- name: Use Node.js ${{ matrix.node-version }}
28-
uses: actions/setup-node@v4
18+
- uses: actions/checkout@v7
19+
- name: Use Node.js from package.json
20+
uses: actions/setup-node@v7
2921
with:
30-
node-version: ${{ matrix.node-version }}
31-
cache: yarn
32-
- run: yarn
33-
- run: yarn build
22+
node-version-file: package.json
23+
cache: npm
24+
- run: npm ci
25+
- run: npm run build

0 commit comments

Comments
 (0)