Skip to content

Release if needed

Release if needed #81

Workflow file for this run

name: Release if needed
on:
workflow_run:
workflows: ['CI']
branches: [main, master]
types:
- completed
jobs:
release-if-should:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
steps:
- uses: handy-common-utils/automation/github/actions/prepare-node@main
with:
node-version: .nvmrc
fetch-depth: 0
- run: npm ci
- run: npx zx-bulk-release
env:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}