chore: release v0.1.2 #3
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*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Setup pnpm | |
run: corepack enable && corepack prepare | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Build | |
run: pnpm build | |
- name: Set NPM access token | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN | |
- name: Publish to NPM | |
run: pnpm publish --no-git-checks | |
- name: Publish Github Release | |
run: npx changelogithub | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |