File tree Expand file tree Collapse file tree 2 files changed +25
-11
lines changed Expand file tree Collapse file tree 2 files changed +25
-11
lines changed Original file line number Diff line number Diff line change @@ -14,25 +14,32 @@ jobs:
1414 - name : Checkout code
1515 uses : actions/checkout@v4
1616
17+ - name : Setup pnpm
18+ uses : pnpm/action-setup@v4
19+ with :
20+ version : 9
21+
1722 - name : Setup Node.js
1823 uses : actions/setup-node@v4
1924 with :
2025 node-version : ' 18'
26+ cache : ' pnpm'
27+ cache-dependency-path : ' pnpm-lock.yaml'
2128
2229 - name : Install dependencies
23- run : npm ci
30+ run : pnpm install --frozen-lockfile
2431
2532 - name : Build project
26- run : npm run build
33+ run : pnpm run build
2734
2835 - name : Build browser bundle
29- run : npx webpack --config webpack.config.js
36+ run : pnpm exec webpack --config webpack.config.js
3037
3138 - name : Build CommonJS bundle
32- run : npx rollup --config rollup.config.js
39+ run : pnpm exec rollup --config rollup.config.js
3340
3441 - name : Create minified browser bundle
35- run : npx webpack --config webpack.config.js --mode production
42+ run : pnpm exec webpack --config webpack.config.js --mode production
3643
3744 - name : Verify build artifacts
3845 run : |
Original file line number Diff line number Diff line change @@ -13,14 +13,21 @@ jobs:
1313 - name : Checkout code
1414 uses : actions/checkout@v4
1515
16+ - name : Setup pnpm
17+ uses : pnpm/action-setup@v4
18+ with :
19+ version : 9
20+
1621 - name : Setup Node.js
1722 uses : actions/setup-node@v4
1823 with :
1924 node-version : ' 18'
2025 registry-url : ' https://registry.npmjs.org'
26+ cache : ' pnpm'
27+ cache-dependency-path : ' pnpm-lock.yaml'
2128
2229 - name : Install dependencies
23- run : npm ci
30+ run : pnpm install --frozen-lockfile
2431
2532 - name : Verify version matches tag
2633 run : |
@@ -42,18 +49,18 @@ jobs:
4249 echo "Version verification passed!"
4350
4451 - name : Build project
45- run : npm run build
52+ run : pnpm run build
4653
4754 - name : Build browser bundle
48- run : npx webpack --config webpack.config.js
55+ run : pnpm exec webpack --config webpack.config.js
4956
5057 - name : Build CommonJS bundle
51- run : npx rollup --config rollup.config.js
58+ run : pnpm exec rollup --config rollup.config.js
5259
5360 - name : Create minified browser bundle
54- run : npx webpack --config webpack.config.js --mode production
61+ run : pnpm exec webpack --config webpack.config.js --mode production
5562
5663 - name : Publish to NPM
57- run : npm publish
64+ run : pnpm publish
5865 env :
5966 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments