Feature/sfu #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |