From 969c2bad141cc60b227063ad0cf0efb11d9600c4 Mon Sep 17 00:00:00 2001 From: Joel Wetzell Date: Wed, 5 Jun 2024 14:17:32 -0500 Subject: [PATCH] add step to publish to NPM as well --- .github/workflows/build_cli.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_cli.yml b/.github/workflows/build_cli.yml index deefc09c5..227e37328 100644 --- a/.github/workflows/build_cli.yml +++ b/.github/workflows/build_cli.yml @@ -41,9 +41,16 @@ jobs: - name: Build CLI run: pnpm build:cli - - name: Release + - name: Release Binary uses: softprops/action-gh-release@v1 with: files: './apps/cli/dist/*' env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Publish to NPM + run: pnpm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + NPM_CONFIG_PROVENANCE: true + working-directory: ./apps/cli \ No newline at end of file