chore: release v0.3.5 #12
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 | |
permissions: | |
contents: write | |
on: | |
push: | |
tags: | |
- 'v*' | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set node | |
uses: actions/setup-node@v4 | |
with: | |
registry-url: https://registry.npmjs.org/ | |
node-version: lts/* | |
- run: npx changelogithub | |
env: | |
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
continue-on-error: true # Don't block the release, release notes can be added manually | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Publish to npm | |
run: | | |
npm config set //registry.npmjs.org/:_authToken=$NPM_TOKEN | |
npm publish | |
env: | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} |