Skip to content

CD

CD #105

Workflow file for this run

name: CD
on:
workflow_run:
workflows: ['CI']
types:
- completed
branches:
- main
jobs:
ci:
name: CI
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- run: exit 0
publish:
needs:
- ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true