Skip to content

Commit e14d0dd

Browse files
committed
chore: migrate to pnpm
1 parent c214d50 commit e14d0dd

File tree

8 files changed

+10854
-17005
lines changed

8 files changed

+10854
-17005
lines changed

.github/actions/setup-node/action.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Setup NodeJS
2+
description: Setup NodeJS
3+
4+
runs:
5+
using: 'composite'
6+
steps:
7+
- uses: pnpm/action-setup@v4
8+
name: Install pnpm
9+
id: pnpm-install
10+
with:
11+
run_install: false
12+
13+
- name: Install NodeJS
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version-file: '.node-version'
17+
registry-url: 'https://registry.npmjs.org'
18+
cache: 'pnpm'
19+
20+
- name: Install dependencies
21+
shell: bash
22+
run: pnpm i --frozen-lockfile

.github/workflows/release.yml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
14-
with:
15-
node-version: "20"
16-
- run: npm ci
17-
- run: npm run build
18-
- uses: JS-DevTools/npm-publish@v3
19-
id: npm-publish
20-
with:
21-
token: ${{ secrets.NPM_TOKEN }}
13+
14+
- name: Setup NodeJS
15+
uses: ./.github/actions/setup-node
16+
17+
- name: Build
18+
run: pnpm build
19+
20+
- name: Publish
21+
run: pnpm publish --access public --no-git-checks
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/tests.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,15 @@ on:
66
branches:
77
- main
88
pull_request:
9-
types:
10-
- opened
11-
- synchronize
12-
- reopened
13-
- ready_for_review
149

1510
jobs:
1611
tests:
17-
if: github.event.pull_request.draft == false
1812
runs-on: ubuntu-latest
1913
steps:
2014
- uses: actions/checkout@v4
21-
- uses: actions/setup-node@v4
22-
with:
23-
node-version: 20
24-
cache: "npm"
25-
cache-dependency-path: "package-lock.json"
26-
- name: Install dependencies
27-
run: npm install
15+
16+
- name: Setup NodeJS
17+
uses: ./.github/actions/setup-node
18+
2819
- name: Run tests
29-
run: npm test
20+
run: pnpm test

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2-
lib/
2+
lib/
3+
.cursor/mcp.json

.node-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

0 commit comments

Comments
 (0)