Skip to content

Release

Release #5

Workflow file for this run

name: Release
on:
release:
types: [created]
jobs:
build:
permissions:
contents: read
packages: write
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Update version
uses: jossef/action-set-json-field@v2
with:
file: package.json
field: version
value: ${{ github.event.release.tag_name }}
- uses: actions/setup-node@v4
- uses: pnpm/action-setup@v2
with:
version: 8.11.0
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: pnpm run build
- run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}