Skip to content

Node.js Package

Node.js Package #415

Workflow file for this run

name: Node.js Package
on:
workflow_dispatch:
jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- run: npm login
with:

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

View workflow run for this annotation

GitHub Actions / Node.js Package

Invalid workflow file

The workflow is not valid. .github/workflows/npm-publish.yml (Line: 19, Col: 9): Unexpected value 'with' .github/workflows/npm-publish.yml (Line: 22, Col: 13): Unexpected value ''
registry-url: 'https://registry.npmjs.org'
- run: npm publish --provenance --access public
env:
with:
registry-url: 'https://registry.npmjs.org'
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}