Skip to content

Publish Web APIs

Publish Web APIs #208

name: Publish Web APIs
on:
workflow_run:
workflows: ["CI"]
branches: [main]
types:
- completed
jobs:
publish:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: ${{ github.event.workflow_run.head_sha }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "18"
registry-url: "https://registry.npmjs.org"
scope: '@yodaos-jsar'
- name: Install dependencies
run: npm ci
- name: Publish Web APIs
run: npm run publish:webapis
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}