A self-hostable bookmark-everything app (links, notes and images) with AI-based automatic tagging and full text search
build: Add a workflow to auto publish the CLI to npm
MohamedBassem79777bd7e259
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.ymlnew file mode 100644index 00000000..b40d99cc--- /dev/null+++ b/.github/workflows/cli.yml@@ -0,0 +1,24 @@+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]+'+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++ - run: pnpm publish --access public --no-git-checks+ working-directory: apps/cli+ env:+ NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}+diff --git a/apps/cli/package.json b/apps/cli/package.jsonindex 21d7a794..4500e75a 100644--- a/apps/cli/package.json+++ b/apps/cli/package.json@@ -1,7 +1,7 @@{"$schema": "https://json.schemastore.org/package.json","name": "@hoarderapp/cli",- "version": "0.13.0",+ "version": "0.13.2","description": "Command Line Interface (CLI) for Hoarder","license": "GNU Affero General Public License version 3","keywords": [diff --git a/tooling/github/setup/action.yml b/tooling/github/setup/action.ymlindex 9a8ff513..c0b3d85c 100644--- a/tooling/github/setup/action.yml+++ b/tooling/github/setup/action.yml@@ -9,6 +9,7 @@ runs:with:node-version: 21cache: "pnpm"+ registry-url: https://registry.npmjs.org- shell: bashrun: pnpm add -g turbo