Skip to content

Add npm-publish.yml workflow #2

Add npm-publish.yml workflow

Add npm-publish.yml workflow #2

Workflow file for this run

name: Publish to NPM

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

View workflow run for this annotation

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

Invalid workflow file

(Line: 12, Col: 3): The workflow must contain at least one job with no dependencies.
on:
release:
types: [published]
permissions:
id-token: write # Required for OIDC
contents: read
jobs:
publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v4
with:
node-version: 24.6
registry-url: https://registry.npmjs.org
- name: Update npm
run: npm install -g npm@latest
- run: npm ci
- run: npm publish