mirror of
https://github.com/karakeep-app/karakeep.git
synced 2026-02-28 18:25:55 +01:00
30 lines
632 B
YAML
30 lines
632 B
YAML
name: Publish CLI Package to npm
|
|
on:
|
|
push:
|
|
tags:
|
|
# This is a glob pattern not a regex
|
|
- "cli/v[0-9]+.[0-9]+.[0-9]+"
|
|
|
|
permissions:
|
|
id-token: write # Required for OIDC
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Setup
|
|
uses: ./tooling/github/setup
|
|
|
|
- name: Build CLI
|
|
run: pnpm build
|
|
working-directory: apps/cli
|
|
|
|
# npm 11.5.1 or later is required for trusted publishing
|
|
- run: npm install -g npm@latest
|
|
|
|
- run: pnpm publish --access public --no-git-checks
|
|
working-directory: apps/cli
|