Skip to content

Feature/sfu

Feature/sfu #23

Workflow file for this run

name: Automate NPM Package Publish
on:
push:
branches: ["main", "npm-latest-publish"]
pull_request:
branches: ["main", "npm-latest-publish"]
jobs:
npmPublish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm ci
- name: Publish npm package when version is updated
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }} # This works BUT it shows up as problem for some unknown reason ("Context access might be invalid: NPM_TOKEN") and there should not be any errors
# https://github.com/JS-DevTools/npm-publish