Use --immutable flag whenever "yarn install" is called by a tool

Fixes #347

Change-Id: I1b8423f9cef46a425c1ec7665c8285af10c56df6
This commit is contained in:
Manuel Stahl 2024-02-07 17:36:36 +01:00
parent d1e9f38b14
commit ae7f6e18e5
4 changed files with 4 additions and 4 deletions

View file

@ -16,6 +16,6 @@ jobs:
with: with:
node-version: "18" node-version: "18"
- name: Install dependencies - name: Install dependencies
run: yarn --frozen-lockfile run: yarn --immutable
- name: Run tests - name: Run tests
run: yarn test run: yarn test

View file

@ -16,7 +16,7 @@ jobs:
node-version: "18" node-version: "18"
- name: Install and Build 🔧 - name: Install and Build 🔧
run: | run: |
yarn install yarn install --immutable
yarn build yarn build
- name: Deploy 🚀 - name: Deploy 🚀

View file

@ -17,7 +17,7 @@ jobs:
- uses: actions/setup-node@v4 - uses: actions/setup-node@v4
with: with:
node-version: "18" node-version: "18"
- run: yarn install - run: yarn install --immutable
- run: yarn build - run: yarn build
- run: | - run: |
version=`git describe --dirty --tags || echo unknown` version=`git describe --dirty --tags || echo unknown`

View file

@ -6,7 +6,7 @@ ARG REACT_APP_SERVER
WORKDIR /src WORKDIR /src
COPY . /src COPY . /src
RUN yarn --network-timeout=300000 install RUN yarn --network-timeout=300000 install --immutable
RUN REACT_APP_SERVER=$REACT_APP_SERVER yarn build RUN REACT_APP_SERVER=$REACT_APP_SERVER yarn build