From 2d62c154648bf47617c74398288bc6fef9993578 Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Sat, 11 Feb 2023 12:22:23 -0300 Subject: [PATCH] Prevent GitHub worflow from changing lockfile --- .github/workflows/build.yml | 9 +++++---- .github/workflows/release.yml | 8 ++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 55f64f8f..c97e3af0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,10 +22,11 @@ jobs: - name: Setup Node and Yarn uses: volta-cli/action@v3 - - name: Build - run: | - yarn install - yarn run build + - name: Install dependencies + run: yarn install --immutable + + - name: Build the file + run: yarn run build - name: HACS build validation uses: "hacs/action@21.12.1" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a6d9f1e..bcceb70b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,11 +17,11 @@ jobs: - name: Setup Node and Yarn uses: volta-cli/action@v3 - # Build + - name: Install dependencies + run: yarn install --immutable + - name: Build the file - run: | - yarn install - yarn run build + run: yarn run build # Upload build file to the release as an asset. - name: Upload zip to release