Skip to content

chore(ci): do not run npm publish job if NPM_TOKEN is not available #319

chore(ci): do not run npm publish job if NPM_TOKEN is not available

chore(ci): do not run npm publish job if NPM_TOKEN is not available #319

Workflow file for this run

name: cd
on:
push:
branches:
- main
permissions:
contents: read
pull-requests: write
jobs:
npm:
runs-on: ubuntu-24.04
if: secrets.NPM_TOKEN != ''

Check failure on line 15 in .github/workflows/npm.yml

View workflow run for this annotation

GitHub Actions / cd

Invalid workflow file

The workflow is not valid. .github/workflows/npm.yml (Line: 15, Col: 9): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.NPM_TOKEN != ''
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
node-version: 21
- run: npm ci
- uses: JS-DevTools/[email protected]
with:
token: ${{ secrets.NPM_TOKEN }}