Skip to content

1.1.1

1.1.1 #10

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
- uses: pnpm/action-setup@v4
with:
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/setup-node@v4
with:
node-version: 18
cache: pnpm
- name: Update version
uses: jossef/action-set-json-field@v2
with:
file: package.json
field: version
value: ${{ github.event.release.tag_name }}
- run: pnpm run build
- run: npm publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}