diff options
| author | MohamedBassem <me@mbassem.com> | 2024-05-05 12:14:07 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-05-05 12:21:00 +0100 |
| commit | 79777bd7e259596b50e66096bae5262893f45af7 (patch) | |
| tree | 01d7df6d920af4ba76f6aedec31cc9bfcbf1cea7 /.github | |
| parent | 27f45d595be3bccc94e79f623c07555d62fa54ec (diff) | |
| download | karakeep-79777bd7e259596b50e66096bae5262893f45af7.tar.zst | |
build: Add a workflow to auto publish the CLI to npm
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/cli.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/cli.yml b/.github/workflows/cli.yml new file mode 100644 index 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 }} + |
