Skip to content

Add GitHub Packages configuration #2

Add GitHub Packages configuration

Add GitHub Packages configuration #2

name: Node.js Package
on:
push:

Check failure on line 4 in .github/workflows/publish-package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish-package.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
branches: [ main ]
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/
scope: '@zerrodevs'
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}