Skip to content

docs: update example workflow (#20) #8

docs: update example workflow (#20)

docs: update example workflow (#20) #8

name: Version or Publish
on:
push:
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
changesets:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16]
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-pnpm
with:
node-version: ${{ matrix.node-version }}
- run: pnpm build
- id: changesets
uses: changesets/action@v1
with:
version: pnpm bump
publish: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}