Skip to content

Commit 3dcf722

Browse files
authored
Merge pull request #492 from BeAPI/ci/node.js-workflow
Ci/node.js workflow
2 parents 5f2bb00 + cb2625c commit 3dcf722

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020

2121
steps:
2222
- 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
2327
- name: Use Node.js ${{ matrix.node-version }}
24-
uses: actions/setup-node@v1
28+
uses: actions/setup-node@v4
2529
with:
2630
node-version: ${{ matrix.node-version }}
27-
- run: yarn set version berry
31+
cache: yarn
2832
- run: yarn
2933
- run: yarn build

0 commit comments

Comments
 (0)