Skip to content

Commit

Permalink
Update cd.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
vanruesc committed Feb 10, 2024
1 parent 437df84 commit c2634bd
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,16 @@ jobs:
uses: actions/setup-node@v3
with:
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install dependencies and test
run: pnpm install-test --frozen-lockfile
- name: Publish
id: publish
uses: JS-DevTools/npm-publish@v2
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
ignore-scripts: false
- if: ${{ steps.publish.outputs.type }}
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} → ${{ steps.publish.outputs.version }}"
- if: ${{ !steps.publish.outputs.type }}
run: |
pnpm run prepublishOnly
echo "Published version: ${{ steps.publish.outputs.version }}"
- name: Deploy
run: pnpm run deploy
- uses: JamesIves/github-pages-deploy-action@v4
Expand Down

0 comments on commit c2634bd

Please sign in to comment.