fixing the cli release workflow (#399)

This commit is contained in:
Joseph Flinn 2021-10-27 13:10:18 -07:00 committed by GitHub
parent 3e05935262
commit 8250a99524
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 11 additions and 2 deletions

View File

@ -126,6 +126,10 @@ jobs:
env:
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
- name: Make dist dir
shell: pwsh
run: New-Item -ItemType directory -Path ./dist
- name: Download artifacts
uses: bitwarden/gh-actions/download-artifacts@23433be15ed6fd046ce12b6889c5184a8d9c8783
with:
@ -133,16 +137,21 @@ jobs:
workflow_conclusion: success
branch: release
artifacts: bitwarden-cli.${{ env._PKG_VERSION }}.nupkg
path: ./dist
- name: Push to Chocolatey
shell: pwsh
run: choco push
run: |
cd dist
choco push
npm:
name: Publish NPM
runs-on: ubuntu-20.04
needs: setup
env:
_PKG_VERSION: ${{ needs.setup.outputs.package_version }}
steps:
- name: Checkout repo
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
@ -155,7 +164,7 @@ jobs:
workflow: build.yml
workflow_conclusion: success
branch: release
artifacts: bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
artifacts: bitwarden-cli-${{ env._PKG_VERSION }}-npm-build.zip
- name: Setup NPM
run: |