mirror of
https://github.com/bitwarden/web
synced 2025-12-06 00:03:28 +00:00
Updated web build
- Added workflow inputs - Setup cache to support monorepo
This commit is contained in:
20
.github/workflows/build-web.yml
vendored
20
.github/workflows/build-web.yml
vendored
@@ -9,7 +9,10 @@ on:
|
||||
paths:
|
||||
- 'apps/web'
|
||||
workflow_dispatch:
|
||||
inputs: {}
|
||||
inputs:
|
||||
custom_tag_extension:
|
||||
description: "Custom image tag extension"
|
||||
required: false
|
||||
|
||||
defaults:
|
||||
run:
|
||||
@@ -52,7 +55,6 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
needs:
|
||||
- setup
|
||||
- lint
|
||||
env:
|
||||
_VERSION: ${{ needs.setup.outputs.version }}
|
||||
steps:
|
||||
@@ -63,7 +65,7 @@ jobs:
|
||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
||||
with:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
cache-dependency-path: 'apps/web/package-lock.json'
|
||||
node-version: "16"
|
||||
|
||||
- name: Print environment
|
||||
@@ -97,7 +99,6 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
needs:
|
||||
- setup
|
||||
- lint
|
||||
env:
|
||||
_VERSION: ${{ needs.setup.outputs.version }}
|
||||
steps:
|
||||
@@ -108,7 +109,7 @@ jobs:
|
||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
||||
with:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
cache-dependency-path: 'apps/web/package-lock.json'
|
||||
node-version: "16"
|
||||
|
||||
- name: Print environment
|
||||
@@ -142,7 +143,6 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
needs:
|
||||
- setup
|
||||
- lint
|
||||
env:
|
||||
_VERSION: ${{ needs.setup.outputs.version }}
|
||||
steps:
|
||||
@@ -153,7 +153,7 @@ jobs:
|
||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
||||
with:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
cache-dependency-path: 'apps/web/package-lock.json'
|
||||
node-version: "16"
|
||||
|
||||
- name: Print environment
|
||||
@@ -271,7 +271,6 @@ jobs:
|
||||
runs-on: ubuntu-20.04
|
||||
needs:
|
||||
- setup
|
||||
- lint
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v3.0.2
|
||||
@@ -280,7 +279,7 @@ jobs:
|
||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
||||
with:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
cache-dependency-path: 'apps/web/package-lock.json'
|
||||
node-version: "16"
|
||||
|
||||
- name: Print environment
|
||||
@@ -373,7 +372,7 @@ jobs:
|
||||
uses: actions/setup-node@56337c425554a6be30cdef71bf441f15be286854 # v3.1.1
|
||||
with:
|
||||
cache: 'npm'
|
||||
cache-dependency-path: '**/package-lock.json'
|
||||
cache-dependency-path: 'apps/web/package-lock.json'
|
||||
node-version: "16"
|
||||
|
||||
- name: Print environment
|
||||
@@ -440,7 +439,6 @@ jobs:
|
||||
needs:
|
||||
- cloc
|
||||
- setup
|
||||
- lint
|
||||
- build-oss-selfhost
|
||||
- build-cloud
|
||||
- build-commercial-selfhost
|
||||
|
||||
Reference in New Issue
Block a user