From 8250a9952492a1d729e076d8caf28980ae496112 Mon Sep 17 00:00:00 2001 From: Joseph Flinn <58369717+joseph-flinn@users.noreply.github.com> Date: Wed, 27 Oct 2021 13:10:18 -0700 Subject: [PATCH] fixing the cli release workflow (#399) --- .github/workflows/release.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0d810f373f..7975e4aff7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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: |