Skip to content

Commit c2634bd

Browse files
committed
Update cd.yml
1 parent 437df84 commit c2634bd

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

.github/workflows/cd.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,16 @@ jobs:
2121
uses: actions/setup-node@v3
2222
with:
2323
cache: "pnpm"
24-
- name: Install dependencies
25-
run: pnpm install --frozen-lockfile
24+
- name: Install dependencies and test
25+
run: pnpm install-test --frozen-lockfile
2626
- name: Publish
2727
id: publish
28-
uses: JS-DevTools/npm-publish@v2
28+
uses: JS-DevTools/npm-publish@v3
2929
with:
3030
token: ${{ secrets.NPM_TOKEN }}
31-
ignore-scripts: false
3231
- if: ${{ steps.publish.outputs.type }}
3332
run: |
34-
echo "Version changed: ${{ steps.publish.outputs.old-version }} → ${{ steps.publish.outputs.version }}"
35-
- if: ${{ !steps.publish.outputs.type }}
36-
run: |
37-
pnpm run prepublishOnly
33+
echo "Published version: ${{ steps.publish.outputs.version }}"
3834
- name: Deploy
3935
run: pnpm run deploy
4036
- uses: JamesIves/github-pages-deploy-action@v4

0 commit comments

Comments
 (0)