From dcf817de02fb6579b43a3aca8a5b7e10f71d2714 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Sat, 7 Sep 2024 12:01:52 +0200 Subject: [PATCH] fix CLI publishing --- .github/workflows/npm_on_release.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/npm_on_release.yml b/.github/workflows/npm_on_release.yml index 53916e7711..bf4af33f80 100644 --- a/.github/workflows/npm_on_release.yml +++ b/.github/workflows/npm_on_release.yml @@ -1,21 +1,33 @@ -name: Publish typescript-client +name: Publish typescript-client & CLI to NPM on release on: push: tags: - "v*" + workflow_dispatch: jobs: - build_npm: + publish_typescript_client: runs-on: ubicloud-standard-8 steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v3 with: - node-version: "16.x" + node-version: "20.x" registry-url: "https://registry.npmjs.org" - run: cd typescript-client && ./publish.sh && cd .. env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} + publish_cli: + runs-on: ubicloud-standard-8 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v3 + with: + node-version: "20.x" + registry-url: "https://registry.npmjs.org" + - uses: denoland/setup-deno@v1 + with: + deno-version: v1.x - run: cd cli && ./build.sh && cd npm && npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}