Skip to content

🔗 Publish

🔗 Publish #367

Workflow file for this run

name: Publish Packages to npm
on:
workflow_dispatch:
inputs:
debug:
description: 'Enable debug output'
required: false
default: '0'
type: string
options:
- '0'
- '1'
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
- uses: SocketDev/socket-registry/.github/actions/setup@d1687f08833e7355042a1addedd474e84bebacd7
with:
node-version: '22'
- run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- run: pnpm run package:npm:publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SOCKET_CLI_DEBUG: ${{ inputs.debug }}
- run: pnpm run package:npm:access
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SOCKET_CLI_DEBUG: ${{ inputs.debug }}