1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-10 05:13:29 +00:00

Add all option for version bump workflow (#5150)

This commit is contained in:
Michał Chęciński
2023-04-04 09:21:20 +02:00
committed by GitHub
parent a78ed4c548
commit 3afec3e712

View File

@@ -13,6 +13,7 @@ on:
- CLI - CLI
- Desktop - Desktop
- Web - Web
- All
version_number: version_number:
description: "New Version" description: "New Version"
required: true required: true
@@ -66,27 +67,27 @@ jobs:
### Browser ### Browser
- name: Bump Browser Version - name: Bump Browser Version
if: ${{ github.event.inputs.client == 'Browser' }} if: ${{ github.event.inputs.client == 'Browser' || github.event.inputs.client == 'All' }}
env: env:
VERSION: ${{ github.event.inputs.version_number }} VERSION: ${{ github.event.inputs.version_number }}
run: npm version --workspace=@bitwarden/browser ${VERSION} run: npm version --workspace=@bitwarden/browser ${VERSION}
- name: Bump Browser Version - Manifest - name: Bump Browser Version - Manifest
if: ${{ github.event.inputs.client == 'Browser' }} if: ${{ github.event.inputs.client == 'Browser' || github.event.inputs.client == 'All' }}
uses: bitwarden/gh-actions/version-bump@03ad9a873c39cdc95dd8d77dbbda67f84db43945 uses: bitwarden/gh-actions/version-bump@03ad9a873c39cdc95dd8d77dbbda67f84db43945
with: with:
version: ${{ github.event.inputs.version_number }} version: ${{ github.event.inputs.version_number }}
file_path: "apps/browser/src/manifest.json" file_path: "apps/browser/src/manifest.json"
- name: Bump Browser Version - Manifest v3 - name: Bump Browser Version - Manifest v3
if: ${{ github.event.inputs.client == 'Browser' }} if: ${{ github.event.inputs.client == 'Browser' || github.event.inputs.client == 'All' }}
uses: bitwarden/gh-actions/version-bump@03ad9a873c39cdc95dd8d77dbbda67f84db43945 uses: bitwarden/gh-actions/version-bump@03ad9a873c39cdc95dd8d77dbbda67f84db43945
with: with:
version: ${{ github.event.inputs.version_number }} version: ${{ github.event.inputs.version_number }}
file_path: "apps/browser/src/manifest.v3.json" file_path: "apps/browser/src/manifest.v3.json"
- name: Run Prettier after Browser Version Bump - name: Run Prettier after Browser Version Bump
if: ${{ github.event.inputs.client == 'Browser' }} if: ${{ github.event.inputs.client == 'Browser' || github.event.inputs.client == 'All' }}
run: | run: |
npm install -g prettier npm install -g prettier
prettier --write apps/browser/src/manifest.json prettier --write apps/browser/src/manifest.json
@@ -94,20 +95,20 @@ jobs:
### CLI ### CLI
- name: Bump CLI Version - name: Bump CLI Version
if: ${{ github.event.inputs.client == 'CLI' }} if: ${{ github.event.inputs.client == 'CLI' || github.event.inputs.client == 'All' }}
env: env:
VERSION: ${{ github.event.inputs.version_number }} VERSION: ${{ github.event.inputs.version_number }}
run: npm version --workspace=@bitwarden/cli ${VERSION} run: npm version --workspace=@bitwarden/cli ${VERSION}
### Desktop ### Desktop
- name: Bump Desktop Version - Root - name: Bump Desktop Version - Root
if: ${{ github.event.inputs.client == 'Desktop' }} if: ${{ github.event.inputs.client == 'Desktop' || github.event.inputs.client == 'All' }}
env: env:
VERSION: ${{ github.event.inputs.version_number }} VERSION: ${{ github.event.inputs.version_number }}
run: npm version --workspace=@bitwarden/desktop ${VERSION} run: npm version --workspace=@bitwarden/desktop ${VERSION}
- name: Bump Desktop Version - App - name: Bump Desktop Version - App
if: ${{ github.event.inputs.client == 'Desktop' }} if: ${{ github.event.inputs.client == 'Desktop' || github.event.inputs.client == 'All' }}
env: env:
VERSION: ${{ github.event.inputs.version_number }} VERSION: ${{ github.event.inputs.version_number }}
run: npm version ${VERSION} run: npm version ${VERSION}
@@ -115,7 +116,7 @@ jobs:
### Web ### Web
- name: Bump Web Version - name: Bump Web Version
if: ${{ github.event.inputs.client == 'Web' }} if: ${{ github.event.inputs.client == 'Web' || github.event.inputs.client == 'All' }}
env: env:
VERSION: ${{ github.event.inputs.version_number }} VERSION: ${{ github.event.inputs.version_number }}
run: npm version --workspace=@bitwarden/web-vault ${VERSION} run: npm version --workspace=@bitwarden/web-vault ${VERSION}