Skip to content

Automate npm publish #1

Automate npm publish

Automate npm publish #1

Workflow file for this run

# Simple workflow for deploying static content to GitHub Pages

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

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

Invalid type for `job.environment`
name: Publish NPM package
on:
# Runs on pushes targeting the deploy branch
push:
branches: ["publish"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
publish:
environment:
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: Install node modules
run: npm i
- name: Build
run: make publish