Skip to content

Workflow file for this run

name: Publish Package to npmjs
on:
release:
types: [published]
jobs:
tests:
uses: ./.github/workflows/test.yml

Check failure on line 7 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

error parsing called workflow ".github/workflows/publish.yml" -> "./.github/workflows/test.yml" (source tag with sha:8fc71d1b61790e73d4c0432476b370919c76b24f) : workflow is not reusable as it is missing a `on.workflow_call` trigger
build:
needs: tests
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}