Skip to content

Publish Package to npm #86

Publish Package to npm

Publish Package to npm #86

Workflow file for this run

name: Publish Package to npm
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: old
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
cache: npm
scope: "@socketsecurity"
- run: npm install -g npm@latest
- run: npm ci
- run: npm run build:dist
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}