Skip to content

add core publication flow #1

add core publication flow

add core publication flow #1

Workflow file for this run

name: Publish Core to npm
on:
push:
tags:
- "core-v*"
permissions:
contents: read
id-token: write
jobs:
publish-core:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://registry.npmjs.org"
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Build core package
run: pnpm --filter=@flow-scanner/lightning-flow-scanner-core run build
- name: Publish core to npm (trusted publishing)
run: cd packages/core/out && npm publish --access public --provenance