Skip to content

v1.0.0 — Zero-Trust Environment Security, AST Leak Prevention & Secret Scanner #1

v1.0.0 — Zero-Trust Environment Security, AST Leak Prevention & Secret Scanner

v1.0.0 — Zero-Trust Environment Security, AST Leak Prevention & Secret Scanner #1

Workflow file for this run

name: Release & Publish to npm
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for npm provenance
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Typecheck
run: npm run typecheck
- name: Run Tests
run: npm test
- name: Build Bundles
run: npm run build
- name: Publish to npm
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}