Skip to content

Workflow file for this run

name: Publish package to NPM.js
on:
release:
types: [published]
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
with:
node-version: "22.x"
registry-url: "https://registry.npmjs.org"
# Defaults to the user or organization that owns the workflow file
scope: "@barudakrosul"
- run: npm install
- run: npm publish --public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}