File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -17,19 +17,20 @@ jobs:
1717 steps :
1818 - uses : actions/checkout@v4
1919
20- - name : Install pnpm
21- uses : pnpm/action-setup@v2
22- with :
23- version : 10
24-
25- - name : Use Node.js ${{ matrix.node-version }}
20+ - name : Setup Node.js ${{ matrix.node-version }}
2621 uses : actions/setup-node@v4
2722 with :
2823 node-version : ${{ matrix.node-version }}
29- cache : ' pnpm '
24+ cache : ' npm '
3025
3126 - name : Install dependencies
32- run : pnpm install
27+ run : npm ci
28+
29+ - name : Lint
30+ run : npm run lint
3331
3432 - name : Build
35- run : pnpm run build
33+ run : npm run build
34+
35+ - name : Test
36+ run : npm test
Original file line number Diff line number Diff line change @@ -11,25 +11,22 @@ jobs:
1111 steps :
1212 - uses : actions/checkout@v4
1313
14- - name : Install pnpm
15- uses : pnpm/action-setup@v2
16- with :
17- version : 10
1814 - name : Setup Node.js
1915 uses : actions/setup-node@v4
2016 with :
2117 node-version : ' 20.x'
2218 registry-url : ' https://registry.npmjs.org'
2319
2420 - name : Install dependencies
25- run : pnpm install
21+ run : npm ci
22+
23+ - name : Build
24+ run : npm run build
2625
27- - name : Build all packages
28- run : pnpm run build
26+ - name : Test
27+ run : npm test
2928
30- - name : Publish core package
31- if : startsWith(github.ref, 'refs/tags/v')
32- working-directory : ./packages/core
29+ - name : Publish
3330 run : npm publish --access public
3431 env :
35- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
32+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ registry = https://registry.npmjs.org/
You can’t perform that action at this time.
0 commit comments