Skip to content

Workflow file for this run

name: Publish Package to NPM
on:
release:
types: [published]
jobs:
publish-to-npm:
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org/"
scope: "@xkeshav"
always-auth: true
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}