From 79777bd7e259596b50e66096bae5262893f45af7 Mon Sep 17 00:00:00 2001 From: MohamedBassem Date: Sun, 5 May 2024 12:14:07 +0100 Subject: build: Add a workflow to auto publish the CLI to npm --- .github/workflows/cli.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/cli.yml (limited to '.github') 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 }} + -- cgit v1.2.3-70-g09d2