chore: release v0.1.1 #1
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 | |
- name: Setup pnpm | |
run: corepack enable && corepack prepare | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- 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 | |
- name: Publish Github Release | |
run: npx changelogithub | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |