mirror of
https://github.com/bitwarden/cli
synced 2025-12-11 13:53:25 +00:00
fixing the cli release workflow (#399)
This commit is contained in:
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -126,6 +126,10 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
|
CHOCO_API_KEY: ${{ secrets.CHOCO_API_KEY }}
|
||||||
|
|
||||||
|
- name: Make dist dir
|
||||||
|
shell: pwsh
|
||||||
|
run: New-Item -ItemType directory -Path ./dist
|
||||||
|
|
||||||
- name: Download artifacts
|
- name: Download artifacts
|
||||||
uses: bitwarden/gh-actions/download-artifacts@23433be15ed6fd046ce12b6889c5184a8d9c8783
|
uses: bitwarden/gh-actions/download-artifacts@23433be15ed6fd046ce12b6889c5184a8d9c8783
|
||||||
with:
|
with:
|
||||||
@@ -133,16 +137,21 @@ jobs:
|
|||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
branch: release
|
branch: release
|
||||||
artifacts: bitwarden-cli.${{ env._PKG_VERSION }}.nupkg
|
artifacts: bitwarden-cli.${{ env._PKG_VERSION }}.nupkg
|
||||||
|
path: ./dist
|
||||||
|
|
||||||
- name: Push to Chocolatey
|
- name: Push to Chocolatey
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
run: choco push
|
run: |
|
||||||
|
cd dist
|
||||||
|
choco push
|
||||||
|
|
||||||
|
|
||||||
npm:
|
npm:
|
||||||
name: Publish NPM
|
name: Publish NPM
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs: setup
|
needs: setup
|
||||||
|
env:
|
||||||
|
_PKG_VERSION: ${{ needs.setup.outputs.package_version }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # v2.3.4
|
||||||
@@ -155,7 +164,7 @@ jobs:
|
|||||||
workflow: build.yml
|
workflow: build.yml
|
||||||
workflow_conclusion: success
|
workflow_conclusion: success
|
||||||
branch: release
|
branch: release
|
||||||
artifacts: bitwarden-cli-${{ env._PACKAGE_VERSION }}-npm-build.zip
|
artifacts: bitwarden-cli-${{ env._PKG_VERSION }}-npm-build.zip
|
||||||
|
|
||||||
- name: Setup NPM
|
- name: Setup NPM
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user