feat: release v1.8.0 #4
Workflow file for this run
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: release | |
| on: | |
| push: | |
| tags: | |
| - v* | |
| permissions: | |
| contents: write | |
| jobs: | |
| github-release: | |
| name: Publish github release | |
| if: github.repository == 'skyclouds2001/template-sky' | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4.2.2 | |
| - uses: softprops/action-gh-release@v2.2.2 | |
| with: | |
| body: | | |
| Please refer to [CHANGELOG.md](https://github.com/skyclouds2001/template-sky/blob/master/CHANGELOG.md) for details. | |
| npm-release: | |
| name: Publish npm release | |
| if: github.repository == 'skyclouds2001/template-sky' | |
| timeout-minutes: 60 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4.2.2 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@v4.1.0 | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4.4.0 | |
| with: | |
| registry-url: https://registry.npmjs.org/ | |
| node-version-file: .nvmrc | |
| cache: pnpm | |
| - name: Install dependencies | |
| run: pnpm install --frozen-lockfile | |
| - name: Build package | |
| run: pnpm build | |
| - name: Publish package to npm | |
| run: pnpm publish --no-git-checks | |
| env: | |
| NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |