From f5560790204f150a6ffea2af7d8749c2e907f343 Mon Sep 17 00:00:00 2001 From: marabesi Date: Sun, 11 Aug 2024 09:07:39 +0200 Subject: [PATCH] fix(cli): publish workflow --- .github/workflows/publish_npm.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_npm.yml b/.github/workflows/publish_npm.yml index 2854f1c..2cae29e 100644 --- a/.github/workflows/publish_npm.yml +++ b/.github/workflows/publish_npm.yml @@ -2,8 +2,6 @@ name: Publish Package to npmjs on: workflow_dispatch: - release: - types: [published] env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} @@ -14,6 +12,7 @@ jobs: permissions: contents: read id-token: write + steps: - uses: actions/checkout@v4 - name: Set Environment Variables @@ -21,10 +20,13 @@ jobs: with: envFilePath: ./envvars.for.actions - - name: Publish to npm + - name: Use Node.js + uses: actions/setup-node@v3 with: node-version: ${{ env.NODE_VERSION }} registry-url: 'https://registry.npmjs.org' + + - name: Publish to npm run: | npm i --workspaces npm run compile --workspace=cli