Skip to content

Add workflow_dispatch trigger to npm publish workflow #14

Add workflow_dispatch trigger to npm publish workflow

Add workflow_dispatch trigger to npm publish workflow #14

name: Npm nightly publish
on:
push:
branches: [main]
workflow_dispatch:
jobs:
publish-npm-dev:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org
- run: ./.github/scripts/publish-cli-dev.sh
env:
NODE_AUTH_TOKEN: ${{ secrets.npm_token }}