File tree Expand file tree Collapse file tree 8 files changed +10854
-17005
lines changed Expand file tree Collapse file tree 8 files changed +10854
-17005
lines changed Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change @@ -10,12 +10,14 @@ jobs:
10
10
runs-on : ubuntu-latest
11
11
steps :
12
12
- 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 }}
Original file line number Diff line number Diff line change 6
6
branches :
7
7
- main
8
8
pull_request :
9
- types :
10
- - opened
11
- - synchronize
12
- - reopened
13
- - ready_for_review
14
9
15
10
jobs :
16
11
tests :
17
- if : github.event.pull_request.draft == false
18
12
runs-on : ubuntu-latest
19
13
steps :
20
14
- 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
+
28
19
- name : Run tests
29
- run : npm test
20
+ run : pnpm test
Original file line number Diff line number Diff line change 1
1
node_modules /
2
- lib /
2
+ lib /
3
+ .cursor /mcp.json
Original file line number Diff line number Diff line change
1
+ 20
You can’t perform that action at this time.
0 commit comments