File tree Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Expand file tree Collapse file tree 1 file changed +23
-7
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,38 @@ jobs:
1313 runs-on : ubuntu-latest
1414 steps :
1515 - uses : actions/checkout@v4
16- - uses : actions/setup-node@v4
16+ - name : Install pnpm
17+ uses : pnpm/action-setup@v4
18+ with :
19+ version : 10
20+ - name : Use Node.js 20
21+ uses : actions/setup-node@v4
1722 with :
1823 node-version : 20
19- - run : npm ci
20- - run : npm test
24+ cache : ' pnpm'
25+ - name : Install dependencies
26+ run : pnpm install
27+ - name : Run tests
28+ run : pnpm test
2129
2230 publish-npm :
2331 needs : build
2432 runs-on : ubuntu-latest
2533 steps :
2634 - uses : actions/checkout@v4
27- - uses : actions/setup-node@v4
35+ - name : Install pnpm
36+ uses : pnpm/action-setup@v4
37+ with :
38+ version : 10
39+ - name : Use Node.js 20
40+ uses : actions/setup-node@v4
2841 with :
2942 node-version : 20
3043 registry-url : https://registry.npmjs.org/
31- - run : npm ci
32- - run : npm publish
44+ cache : ' pnpm'
45+ - name : Install dependencies
46+ run : pnpm install
47+ - name : Publish to npm
48+ run : pnpm publish --no-git-checks
3349 env :
34- NODE_AUTH_TOKEN : ${{secrets.npm_token}}
50+ NODE_AUTH_TOKEN : ${{secrets.npm_token}}
You can’t perform that action at this time.
0 commit comments