Skip to content

ci: add release workflow (#17) #1

ci: add release workflow (#17)

ci: add release workflow (#17) #1

Workflow file for this run

name: Release
on:
push:
branches:
- master
jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: googleapis/release-please-action@v4
id: release-please
with:
release-type: node
outputs:
release_created: ${{ steps.release-please.outputs.release_created }}
publish:
runs-on: ubuntu-latest
needs: [version]
if: ${{ needs.version.outputs.release_created }}
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup
- name: Build
run: yarn run build
- name: Publish to NPM
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}