Skip to content

Fix invalid workflow syntax #8

Fix invalid workflow syntax

Fix invalid workflow syntax #8

Workflow file for this run

name: Publish to npmjs
on:
workflow_call
release:

Check failure on line 5 in .github/workflows/npm-publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
types: [created]
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}