chore(release): v2.1.2 #17
Workflow file for this run
This file contains 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*' | |
- '!*-rc.[0-9]+' | |
permissions: | |
contents: write | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: corepack enable | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18.x | |
cache: pnpm | |
- run: pnpm install | |
- run: pnpm lint | |
- name: Prepare tsconfig | |
run: pnpm dev:prepare | |
- run: pnpm typecheck | |
- run: pnpm test | |
- name: Create release | |
run: npx changelogen gh release | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- run: pnpm prepack | |
- uses: JS-DevTools/npm-publish@v2 | |
with: | |
token: ${{ secrets.NPM_TOKEN }} |