Skip to content

Fix publish to NPM v2 (#6) #4

Fix publish to NPM v2 (#6)

Fix publish to NPM v2 (#6) #4

name: Publish Workflow
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.10.0"
registry-url: https://registry.npmjs.org
- id: super-cache
uses: mangs/super-cache-action@v3
- if: steps.super-cache.outputs.cache-hit != 'true'
run: npm ci
# Task execution
- uses: mangs/simple-release-notes-action@v2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_USER_ACCESS_TOKEN }}