Skip to content

Publish to GitHub Packages #3

Publish to GitHub Packages

Publish to GitHub Packages #3

Workflow file for this run

name: Publish
on: [push]
jobs:
build:
name: Publish to GitHub Packages
runs-on: ubuntu-latest
permissions:
packages: write
steps:
- uses: actions/checkout@v2
- name: Read node version from .nvmrc
id: nvm
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
- name: "Setup Node v${{ steps.nvm.outputs.NVMRC }}"
uses: actions/setup-node@v2
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
cache: 'npm'
- name: Build
run: npm publish
with:

Check failure on line 27 in .github/workflows/publish.yaml

View workflow run for this annotation

GitHub Actions / Publish

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yaml (Line: 27, Col: 9): Unexpected value 'with'
repo-token: ${{ secrets.GITHUB_TOKEN }}