Skip to content

npm-publish

npm-publish #46

Workflow file for this run

name: 'npm-publish'
on:
workflow_dispatch:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '22.x'
registry-url: 'https://registry.npmjs.org'
- name: 'install'
run: npm install --frozen-lockfile
- name: 'create package'
run: npm run package
run:

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

View workflow run for this annotation

GitHub Actions / npm-publish

Invalid workflow file

The workflow is not valid. .github/workflows/npm-publish.yml (Line: 20, Col: 9): 'run' is already defined
- name: 'publish'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}