Skip to content

CD

CD #47

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
delivery:
name: Delivery
needs:
- ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}