|
|
|
|
@ -167,7 +167,7 @@ jobs:
@@ -167,7 +167,7 @@ jobs:
|
|
|
|
|
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8 |
|
|
|
|
with: |
|
|
|
|
workflow: build-cli.yml |
|
|
|
|
path: apps/cli |
|
|
|
|
path: apps/cli/dist |
|
|
|
|
workflow_conclusion: success |
|
|
|
|
branch: ${{ github.ref_name }} |
|
|
|
|
artifacts: bitwarden-cli.${{ env._PKG_VERSION }}.nupkg |
|
|
|
|
@ -190,6 +190,18 @@ jobs:
@@ -190,6 +190,18 @@ jobs:
|
|
|
|
|
- name: Checkout repo |
|
|
|
|
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2 |
|
|
|
|
|
|
|
|
|
- name: Login to Azure |
|
|
|
|
uses: Azure/login@24848bc889cfc0a8313c2b3e378ac0d625b9bc16 |
|
|
|
|
with: |
|
|
|
|
creds: ${{ secrets.AZURE_PROD_KV_CREDENTIALS }} |
|
|
|
|
|
|
|
|
|
- name: Retrieve secrets |
|
|
|
|
id: retrieve-secrets |
|
|
|
|
uses: Azure/get-keyvault-secrets@b5c723b9ac7870c022b8c35befe620b7009b336f |
|
|
|
|
with: |
|
|
|
|
keyvault: "bitwarden-prod-kv" |
|
|
|
|
secrets: "cli-npm-api-key" |
|
|
|
|
|
|
|
|
|
- name: Download artifacts |
|
|
|
|
uses: bitwarden/gh-actions/download-artifacts@c1fa8e09871a860862d6bbe36184b06d2c7e35a8 |
|
|
|
|
with: |
|
|
|
|
@ -202,7 +214,7 @@ jobs:
@@ -202,7 +214,7 @@ jobs:
|
|
|
|
|
- name: Setup NPM |
|
|
|
|
run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc |
|
|
|
|
env: |
|
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
|
|
|
|
NPM_TOKEN: ${{ steps.retrieve-secrets.outputs.cli-npm-api-key }} |
|
|
|
|
|
|
|
|
|
- name: Install Husky |
|
|
|
|
run: npm install -g husky |
|
|
|
|
|