Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork238
Update cd.yml#129
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
| name:CD | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| tags: | ||
| -"v*" | ||
| permissions: | ||
| id-token:write | ||
| contents:read | ||
| jobs: | ||
| deploy: | ||
| name:Deploy | ||
| runs-on:ubuntu-latest | ||
| steps: | ||
| -uses:actions/checkout@v5 | ||
| -name:Install PNPM | ||
| uses:pnpm/action-setup@v4 | ||
| with: | ||
| version:10 | ||
| -name:Install Node | ||
| uses:actions/setup-node@v6 | ||
| with: | ||
| node-version:24 | ||
| registry-url:"https://registry.npmjs.org" | ||
| cache:"pnpm" | ||
| -name:Install dependencies and test | ||
| run:pnpm install-test --frozen-lockfile | ||
| -name:Publish | ||
| -uses:JS-DevTools/npm-publish@v4 | ||
| id:publish | ||
| with: | ||
| provenance:true | ||
| ignore-scripts:true | ||
| -if:${{ steps.publish.outputs.type }} | ||
| run:echo "Version changed!" | ||
| -name:Pages | ||
| run:pnpm run deploy | ||
| -uses:JamesIves/github-pages-deploy-action@v4 | ||
| with: | ||
| branch:gh-pages | ||
| folder:public | ||
| target-folder:public | ||
| single-commit:true | ||