Skip to content

Commit 5874d66

Browse files
update the deploy action to use pnpm
1 parent 5dd0150 commit 5874d66

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

.github/workflows/deploy.yml

+14-6
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,15 @@ jobs:
2121
uses: actions/setup-node@v1
2222
with:
2323
node-version: ${{ matrix.node-version }}
24-
- run: npm install
25-
- run: npm run build --if-present
26-
- run: npm run lint
27-
- run: npm test
24+
- uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
- run: pnpm install
28+
- run: pnpm install
29+
working-directory: examples
30+
- run: pnpm run build
31+
- run: pnpm run lint
32+
- run: pnpm run test
2833
deploy:
2934
needs: build
3035
runs-on: ubuntu-latest
@@ -33,8 +38,11 @@ jobs:
3338
- uses: actions/setup-node@v1
3439
with:
3540
node-version: 18.x
36-
- run: npm install
37-
- run: npm run build --if-present
41+
- uses: pnpm/action-setup@v4
42+
with:
43+
version: 9
44+
- run: pnpm install
45+
- run: pnpm run build
3846
# https://github.com/marketplace/actions/npm-publish
3947
- uses: JS-DevTools/npm-publish@v2
4048
with:

0 commit comments

Comments
 (0)