Skip to content

Publish Package to npmjs #252

Publish Package to npmjs

Publish Package to npmjs #252

Workflow file for this run

name: Publish Package to npmjs
on:
workflow_run:
workflows:
- "Run Tests"
branches: ["main"]
types:
- completed
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: "24.x"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Install Dependencies
run: npm ci
- name: Audit Signatures
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run release