Skip to content

Publish DB to NPM

Publish DB to NPM #3

Workflow file for this run

name: Publish DB to NPM
on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
build:
name: Build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
packages: write
pull-requests: write
issues: read
env:
NPM_CONFIG_PROVENANCE: true
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Enable Corepack
run: |
corepack enable
corepack pnpm install
- name: Build project
run: pnpm run build-db
- name: Publish composables
run: cd db && npm publish --provenance --access public
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}