Skip to content

Commit 7610538

Browse files
committed
ci: update the CI to use pnpm and latest node
1 parent 01ee811 commit 7610538

File tree

3 files changed

+44
-35
lines changed

3 files changed

+44
-35
lines changed

.github/workflows/CI.yml

Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,17 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- master
6+
pull_request:
57

68
defaults:
79
run:
810
shell: bash
911

1012
jobs:
1113
Lint:
12-
if: "!contains(github.event.head_commit.message, '[skip ci]')"
14+
if: "${{ !contains(github.event.head_commit.message, '[skip ci]') }}"
1315
runs-on: ubuntu-latest
1416
env:
1517
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -20,19 +22,24 @@ jobs:
2022

2123
- uses: actions/setup-node@v4
2224
with:
23-
node-version: "16.x"
25+
node-version: 20
2426

25-
- name: Commit lint ✨
26-
uses: wagoid/commitlint-github-action@v5
27+
- name: Setup PNPM
28+
uses: pnpm/action-setup@v2
29+
with:
30+
version: 8
2731

28-
- name: Install dependencies
29-
run: npm install
32+
- name: Install
33+
run: pnpm install
3034

3135
- name: Format ✨
32-
run: npm run test.format
36+
run: pnpm run test.format
3337

3438
- name: Lint ✨
35-
run: npm run test.lint
39+
run: pnpm run test.lint
40+
41+
- name: Commit lint ✨
42+
uses: wagoid/commitlint-github-action@v5
3643

3744
Release:
3845
needs: [Lint]
@@ -43,9 +50,15 @@ jobs:
4350
- uses: actions/checkout@v4
4451
- uses: actions/setup-node@v4
4552
with:
46-
node-version: "16.x"
47-
- name: NPM install
48-
run: npm install
53+
node-version: 20
54+
55+
- name: Setup PNPM
56+
uses: pnpm/action-setup@v2
57+
with:
58+
version: 8
59+
60+
- name: Install ✨
61+
run: pnpm install
4962

5063
- name: Release 🎉
5164
uses: cycjimmy/semantic-release-action@v2

pnpm-lock.yaml

Lines changed: 18 additions & 20 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pnpm-workspace.yaml

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)