-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
read pnpm version from
package.json
and update node.js in CI
- Loading branch information
1 parent
b025d63
commit 02f9c8a
Showing
3 changed files
with
6 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,25 +19,17 @@ runs: | |
steps: | ||
- name: Setup pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.12.1 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
cache: pnpm | ||
|
||
- name: Configure corepack | ||
if: ${{ inputs.enable-corepack == 'true' }} | ||
shell: bash | ||
# Forcibly upgrade our available version of corepack. | ||
# The bundled version in node 16 has known issues. | ||
# Prepends the npm bin dir so that it is always first. | ||
run: | | ||
npm install --force --global corepack@latest | ||
npm config get prefix >> $GITHUB_PATH | ||
corepack enable | ||
run: corepack enable | ||
|
||
- name: pnpm install | ||
id: install | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,7 +215,7 @@ jobs: | |
strategy: | ||
matrix: | ||
node: [16] | ||
node: [18] | ||
|
||
steps: | ||
- uses: actions/cache/restore@v3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -383,8 +383,6 @@ jobs: | |
# work out of box. We should take another stab at it later. | ||
- name: Setup Pnpm | ||
uses: pnpm/[email protected] | ||
with: | ||
version: 7.2.1 | ||
|
||
- name: Make sure pnpm always has a cache | ||
shell: bash | ||
|
@@ -398,7 +396,7 @@ jobs: | |
- name: Setup Node.js | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
cache: ${{ matrix.manager }} | ||
cache-dependency-path: package.json | ||
|
||
|
@@ -851,7 +849,7 @@ jobs: | |
- name: Setup Node.js | ||
uses: ./.github/actions/setup-node | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
|
||
- name: Build benchmarks for tests | ||
timeout-minutes: 120 | ||
|
@@ -917,7 +915,7 @@ jobs: | |
- name: Setup Node.js | ||
uses: ./.github/actions/setup-node | ||
with: | ||
node-version: 16 | ||
node-version: 18 | ||
|
||
- name: Build benchmarks for tests | ||
timeout-minutes: 120 | ||
|