Skip to content

Workflow file for this run

# .github/workflows/publish-npm.yml
# This workflow pushes new published releases to https://www.npmjs.com using
# the Yarn Package Manager.
name: Publish package to npmjs (using Yarn)
on:
release:
types: [published]
workflow_call:
secrets:
NPM_TOKEN:
required: true
type: string

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

View workflow run for this annotation

GitHub Actions / Publish package to npmjs (using Yarn)

Invalid workflow file

The workflow is not valid. .github/workflows/publish-npm.yml (Line: 12, Col: 9): Unexpected value 'type'

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

View workflow run for this annotation

GitHub Actions / Publish package to npmjs (using Yarn)

Invalid workflow file

The workflow is not valid. .github/workflows/publish-npm.yml (Line: 12, Col: 9): Unexpected value 'type'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.16.x' # Use LTS
registry-url: 'https://registry.npmjs.org'
scope: '@octocat'
- run: yarn
- run: yarn npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}