Skip to content

fix: try to fix CD workflow triggering #11

fix: try to fix CD workflow triggering

fix: try to fix CD workflow triggering #11

Workflow file for this run

name: Node.js CD
on:
pull_request:
branches:
- main
types: [closed]
jobs:
if: github.event.pull_request.merged == true

Check failure on line 10 in .github/workflows/cd.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/cd.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}