From d65824e6241162e226ccc6b917aa353cc4d5781c Mon Sep 17 00:00:00 2001 From: Vince Grassia <593223+vgrassia@users.noreply.github.com> Date: Fri, 17 Oct 2025 11:35:57 -0400 Subject: [PATCH] BRE-1220 - Update Publish CLI workflow (#16912) --- .github/workflows/publish-cli.yml | 7 ++++++- apps/cli/package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-cli.yml b/.github/workflows/publish-cli.yml index 121236c0de..1287970ccf 100644 --- a/.github/workflows/publish-cli.yml +++ b/.github/workflows/publish-cli.yml @@ -199,6 +199,7 @@ jobs: - name: Get Node version id: retrieve-node-version + working-directory: ./ run: | NODE_NVMRC=$(cat .nvmrc) NODE_VERSION=${NODE_NVMRC/v/''} @@ -208,9 +209,13 @@ jobs: uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: ${{ steps.retrieve-node-version.outputs.node_version }} - npm-version: "11.5.1" # FIXME: npm 11.5.1 or later is required to publish w/ OIDC; move version management to somewhere maintainable by automation registry-url: "https://registry.npmjs.org/" + - name: Install NPM + run: | + npm install -g npm@latest # npm 11.5.1 or later is required to publish w/ OIDC + npm --version + - name: Download and set up artifact run: | mkdir -p build diff --git a/apps/cli/package.json b/apps/cli/package.json index 35dc792038..02627f80a2 100644 --- a/apps/cli/package.json +++ b/apps/cli/package.json @@ -13,7 +13,7 @@ "homepage": "https://bitwarden.com", "repository": { "type": "git", - "url": "https://github.com/bitwarden/clients" + "url": "git+https://github.com/bitwarden/clients.git" }, "license": "SEE LICENSE IN LICENSE.txt", "scripts": {