Skip to content

Commit

Permalink
Chore/update CI/CD (#89)
Browse files Browse the repository at this point in the history
* update CI/CD

https://github.com/pnpm/action-setup
> The v2 version of this action has stopped working with newer Node.js versions. Please, upgrade to the latest version to fix any issues.

* use matrix.node
  • Loading branch information
ishiko732 authored Jul 6, 2024
1 parent 608333a commit c455cde
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 19 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,20 @@ jobs:
runs-on: ${{matrix.platform}}

steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.2
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8.7.1
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: 'pnpm'

- name: Get pnpm store directory
shell: bash
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,22 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v2
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
node-version: 16
version: 8.7.1
run_install: false

- uses: pnpm/action-setup@v2.2.2
- name: Install Node.js
uses: actions/setup-node@v4
with:
version: 8.7.1
node-version: 16
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: pnpm install

- name: Build docs
run: pnpm run docs
Expand Down
18 changes: 12 additions & 6 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,20 @@ jobs:
packages: write # allow GITHUB_TOKEN to publish packages
id-token: write
steps:
- uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- uses: pnpm/action-setup@v2.2.2
- name: Checkout
uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 8.7.1
run_install: false

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 16
cache: 'pnpm'

- name: Get pnpm store directory
shell: bash
Expand Down

0 comments on commit c455cde

Please sign in to comment.