Skip to content

Commit

Permalink
ci: update node version
Browse files Browse the repository at this point in the history
  • Loading branch information
hal-wang committed Apr 6, 2024
1 parent 075f4e3 commit 200a042
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 38 deletions.
49 changes: 22 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [16, 18, 20]
include:
# Active LTS + other OS
- os: macos-latest
node_version: 18
- os: windows-latest
node_version: 18
node_version: [18, 20]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v2
with:
version: 8
Expand All @@ -32,10 +27,11 @@ jobs:
try-publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
Expand All @@ -46,10 +42,11 @@ jobs:
try-publish-create-halsp:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
Expand All @@ -62,10 +59,11 @@ jobs:
needs: [test, try-publish-npm, try-publish-create-halsp]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
Expand All @@ -81,10 +79,11 @@ jobs:
needs: [test, try-publish-npm, try-publish-create-halsp]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
Expand All @@ -100,9 +99,5 @@ jobs:
needs: [publish-npm, publish-create-halsp]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: actions/checkout@v4
- run: sh scripts/sync-cnpm.sh
16 changes: 5 additions & 11 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,13 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [16, 18, 20]
include:
# Active LTS + other OS
- os: macos-latest
node_version: 18
- os: windows-latest
node_version: 18
node_version: [18, 20]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node_version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
node-version: ${{ matrix.node_version }}
- uses: pnpm/action-setup@v2
with:
version: 8
Expand Down

0 comments on commit 200a042

Please sign in to comment.