Skip to content

fix: node auth token #5

fix: node auth token

fix: node auth token #5

Workflow file for this run

name: Publish Package
on:
push:
tags:
- v*
jobs:
publish-npm:
permissions:
id-token: write
contents: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Use Node.js v20
uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
always-auth: true
cache: npm
- name: Install Dependencies
run: npm install
- name: Generate Changelog
run: npx changelogithub --no-group
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}