mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-02 18:17:46 +01:00
Add git hash to all lower environment builds (#8142)
This commit is contained in:
parent
dd63a48176
commit
bf884ac279
8
.github/workflows/build-web.yml
vendored
8
.github/workflows/build-web.yml
vendored
@ -76,14 +76,18 @@ jobs:
|
|||||||
npm_command: "dist:bit:selfhost"
|
npm_command: "dist:bit:selfhost"
|
||||||
- name: "cloud-QA"
|
- name: "cloud-QA"
|
||||||
npm_command: "build:bit:qa"
|
npm_command: "build:bit:qa"
|
||||||
|
git_metadata: true
|
||||||
- name: "ee"
|
- name: "ee"
|
||||||
npm_command: "build:bit:ee"
|
npm_command: "build:bit:ee"
|
||||||
|
git_metadata: true
|
||||||
- name: "cloud-euprd"
|
- name: "cloud-euprd"
|
||||||
npm_command: "build:bit:euprd"
|
npm_command: "build:bit:euprd"
|
||||||
- name: "cloud-euqa"
|
- name: "cloud-euqa"
|
||||||
npm_command: "build:bit:euqa"
|
npm_command: "build:bit:euqa"
|
||||||
|
git_metadata: true
|
||||||
- name: "cloud-usdev"
|
- name: "cloud-usdev"
|
||||||
npm_command: "build:bit:usdev"
|
npm_command: "build:bit:usdev"
|
||||||
|
git_metadata: true
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@ -109,9 +113,9 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Setup QA metadata
|
- name: Add Git metadata to build version
|
||||||
working-directory: apps/web
|
working-directory: apps/web
|
||||||
if: matrix.name == 'cloud-QA'
|
if: matrix.git_metadata
|
||||||
run: |
|
run: |
|
||||||
VERSION=$( jq -r ".version" package.json)
|
VERSION=$( jq -r ".version" package.json)
|
||||||
jq --arg version "$VERSION+${GITHUB_SHA:0:7}" '.version = $version' package.json > package.json.tmp
|
jq --arg version "$VERSION+${GITHUB_SHA:0:7}" '.version = $version' package.json > package.json.tmp
|
||||||
|
Loading…
Reference in New Issue
Block a user