Skip to content

update ci

update ci #6

Workflow file for this run

name: Node.js Package
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
publish-npm:
needs: build
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: echo "Node auth token:"
- run: echo ${{ secrets.NPM_TOKEN }}
- run: npm publish --access public
env:
NODE_DEBUG: request
NODE_AUTH_TOKEN: ${{ secrets.NPM TOKEN }}

Check failure on line 33 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / Node.js Package

Invalid workflow file

The workflow is not valid. .github/workflows/release.yml (Line: 33, Col: 28): Unexpected symbol: 'TOKEN'. Located at position 13 within expression: secrets.NPM TOKEN