Skip to content

Commit

Permalink
chore: Update pnpm and node setup in release.yml and test.yml workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
spa5k committed Jul 1, 2024
1 parent db30c60 commit 3dbda03
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 22 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,15 @@ jobs:
contents: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 22
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm install
- run: pnpm test
- run: pnpm build
- name: Configure Git
Expand Down
34 changes: 15 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,30 +1,26 @@
name: Test
on:
push:

jobs:
runner-job:
build:
runs-on: ubuntu-latest
env:
NODE_ENV: production

strategy:
matrix:
node-version: [20.x, 22.x]

name: Node.js ${{ matrix.node }}

node-version: [20, 22]
steps:
- uses: actions/checkout@v2
- uses: pnpm/[email protected]
with:
version: 7.20.0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
cache: "pnpm"
- name: Install deps
run: pnpm install
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- name: Install dependencies
run: pnpm install
- name: Linting
run: pnpm lint
- name: Test
Expand Down

0 comments on commit 3dbda03

Please sign in to comment.