Skip to content

Update publish.yml

Update publish.yml #2

Workflow file for this run

name: Publish NPM Package
on:
push:
branches: main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20"
- name: Bump package version
run: |
git config --global user.email "${{github.actor}}@users.noreply.github.com"
git config --global user.name "${{github.actor}}"
npm version patch
- name: Push updated package + tag to GitHub
run: git push -f && git push --tags -f
env:
GITHUB_TOKEN: ${{ secrets.PUSH_GITHUB_TOKEN }}
- name: Publish package to NPM
uses: JS-DevTools/npm-publish@v3
with:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Check failure on line 30 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / Publish NPM Package

Invalid workflow file

The workflow is not valid. .github/workflows/publish.yml (Line: 30, Col: 13): A mapping was not expected