A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
release: add a way to publish canary CLI versions
Mohamed Bassemc6a5c6262fd9
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.ymlindex de3d9416..876ef1ec 100644--- a/.github/workflows/cli.yml+++ b/.github/workflows/cli.yml@@ -2,8 +2,8 @@ name: Publish CLI Package to npmon:push:tags:- # This is a glob pattern not a regex- "cli/v[0-9]+.[0-9]+.[0-9]+"+ workflow_dispatch:permissions:id-token: write # Required for OIDC@@ -18,12 +18,26 @@ jobs:- name: Setupuses: ./tooling/github/setup+ - name: Set canary version+ if: github.event_name == 'workflow_dispatch'+ run: |+ npm version "0.0.0-canary.${GITHUB_RUN_ID}.${GITHUB_RUN_ATTEMPT}" --no-git-tag-version+ working-directory: apps/cli+- name: Build CLIrun: pnpm buildworking-directory: apps/cli# npm 11.5.1 or later is required for trusted publishing- - run: npm install -g npm@latest+ - name: Upgrade npm+ run: npm install -g npm@latest++ - name: Publish stable release+ if: github.event_name == 'push'+ run: pnpm publish --access public --no-git-checks+ working-directory: apps/cli- - run: pnpm publish --access public --no-git-checks+ - name: Publish canary release+ if: github.event_name == 'workflow_dispatch'+ run: pnpm publish --access public --no-git-checks --tag canaryworking-directory: apps/cli