mirror of
https://github.com/bitwarden/browser
synced 2024-12-28 02:43:04 +01:00
Update Browser Build Workflow (#2544)
This commit is contained in:
parent
eb4b9bc7b0
commit
186c16b577
12
.github/workflows/build-browser.yml
vendored
12
.github/workflows/build-browser.yml
vendored
@ -14,7 +14,6 @@ on:
|
|||||||
defaults:
|
defaults:
|
||||||
run:
|
run:
|
||||||
shell: bash
|
shell: bash
|
||||||
working-directory: apps/browser
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
cloc:
|
cloc:
|
||||||
@ -40,9 +39,6 @@ jobs:
|
|||||||
repo_url: ${{ steps.gen_vars.outputs.repo_url }}
|
repo_url: ${{ steps.gen_vars.outputs.repo_url }}
|
||||||
adj_build_number: ${{ steps.gen_vars.outputs.adj_build_number }}
|
adj_build_number: ${{ steps.gen_vars.outputs.adj_build_number }}
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
|
|
||||||
|
|
||||||
- name: Get Package Version
|
- name: Get Package Version
|
||||||
id: gen_vars
|
id: gen_vars
|
||||||
run: |
|
run: |
|
||||||
@ -58,6 +54,9 @@ jobs:
|
|||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
needs:
|
needs:
|
||||||
- setup
|
- setup
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: apps/browser
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
|
||||||
@ -95,6 +94,9 @@ jobs:
|
|||||||
- locales-test
|
- locales-test
|
||||||
env:
|
env:
|
||||||
_BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
_BUILD_NUMBER: ${{ needs.setup.outputs.adj_build_number }}
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: apps/browser
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
|
uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # v3.0.0
|
||||||
@ -103,7 +105,7 @@ jobs:
|
|||||||
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3.0.0
|
uses: actions/setup-node@9ced9a43a244f3ac94f13bfd896db8c8f30da67a # v3.0.0
|
||||||
with:
|
with:
|
||||||
cache: 'npm'
|
cache: 'npm'
|
||||||
cache-dependency-path: '**/package-lock.json'
|
cache-dependency-path: 'apps/browser/**/package-lock.json'
|
||||||
node-version: '16'
|
node-version: '16'
|
||||||
|
|
||||||
- name: Print environment
|
- name: Print environment
|
||||||
|
14
.github/workflows/version-bump.yml
vendored
14
.github/workflows/version-bump.yml
vendored
@ -48,7 +48,7 @@ jobs:
|
|||||||
|
|
||||||
### Browser
|
### Browser
|
||||||
- name: Bump Browser Version - Manifest
|
- name: Bump Browser Version - Manifest
|
||||||
if: ${{ github.event.inputs.client == "Browser" }}
|
if: ${{ github.event.inputs.client == 'Browser' }}
|
||||||
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 }}
|
||||||
@ -56,7 +56,7 @@ jobs:
|
|||||||
working-directory: apps/browser
|
working-directory: apps/browser
|
||||||
|
|
||||||
- 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' }}
|
||||||
run: |
|
run: |
|
||||||
npm install -g prettier
|
npm install -g prettier
|
||||||
prettier --write ./src/manifest.json
|
prettier --write ./src/manifest.json
|
||||||
@ -64,7 +64,7 @@ jobs:
|
|||||||
|
|
||||||
### CLI
|
### CLI
|
||||||
- name: Bump CLI Version - Package
|
- name: Bump CLI Version - Package
|
||||||
if: ${{ github.event.inputs.client == "CLI" }}
|
if: ${{ github.event.inputs.client == 'CLI' }}
|
||||||
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 }}
|
||||||
@ -72,7 +72,7 @@ jobs:
|
|||||||
working-directory: apps/cli
|
working-directory: apps/cli
|
||||||
|
|
||||||
- name: Bump CLI Version - Package-lock
|
- name: Bump CLI Version - Package-lock
|
||||||
if: ${{ github.event.inputs.client == "CLI" }}
|
if: ${{ github.event.inputs.client == 'CLI' }}
|
||||||
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 }}
|
||||||
@ -81,7 +81,7 @@ jobs:
|
|||||||
|
|
||||||
### Desktop
|
### Desktop
|
||||||
- name: Bump Desktop Version - Package
|
- name: Bump Desktop Version - Package
|
||||||
if: ${{ github.event.inputs.client == "Desktop" }}
|
if: ${{ github.event.inputs.client == 'Desktop' }}
|
||||||
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 }}
|
||||||
@ -90,7 +90,7 @@ jobs:
|
|||||||
|
|
||||||
### Web
|
### Web
|
||||||
- name: Bump Web Version - package.json
|
- name: Bump Web Version - package.json
|
||||||
if: ${{ github.event.inputs.client == "Web" }}
|
if: ${{ github.event.inputs.client == 'Web' }}
|
||||||
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 }}
|
||||||
@ -98,7 +98,7 @@ jobs:
|
|||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
|
|
||||||
- name: Bump Web Version - package-lock.json
|
- name: Bump Web Version - package-lock.json
|
||||||
if: ${{ github.event.inputs.client == "Web" }}
|
if: ${{ github.event.inputs.client == 'Web' }}
|
||||||
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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user