Skip to content

Commit 3a43b14

Browse files
committed
chore: update release script install settings
1 parent b01e816 commit 3a43b14

File tree

7 files changed

+15
-11
lines changed

7 files changed

+15
-11
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ jobs:
112112
# If statement isn't needed here b/c yarn will leverage the cache if it exists
113113
- name: Install dependencies
114114
shell: bash
115-
run: yarn install --immutable
115+
run: yarn install --immutable --immutable-cache
116116

117117
## --- BUILD --- ##
118118
- name: Build components & ui-icons

.github/workflows/compare-results.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ jobs:
7474
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
7575
- name: Install dependencies
7676
shell: bash
77-
run: yarn install --immutable
77+
run: yarn install --immutable --immutable-cache
7878

7979
- name: Set the cache key for builds
8080
id: derive-key
@@ -200,7 +200,7 @@ jobs:
200200
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
201201
- name: Install dependencies
202202
shell: bash
203-
run: yarn install --immutable
203+
run: yarn install --immutable --immutable-cache
204204

205205
## --- BUILD --- ##
206206
- name: Check for built assets

.github/workflows/development.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ jobs:
170170
# If statement isn't needed here b/c yarn will leverage the cache if it exists
171171
- name: Install dependencies
172172
shell: bash
173-
run: yarn install --immutable
173+
run: yarn install --immutable --immutable-cache
174174

175175
## --- Run plugins test suites --- ##
176176
- name: Run plugin tests

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
# If statement isn't needed here b/c yarn will leverage the cache if it exists
8787
- name: Install dependencies
8888
shell: bash
89-
run: yarn install --immutable
89+
run: yarn install --immutable --immutable-cache
9090

9191
# Components must be built before linting so that the custom properties are available
9292
# in the dependencies for passthrough and token verification

.github/workflows/publish-site.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ jobs:
6464
# note: if cache-hit isn't needed b/c yarn will leverage the cache if it exists
6565
- name: Install dependencies
6666
shell: bash
67-
run: yarn install --immutable
67+
run: yarn install --immutable --immutable-cache
6868

6969
## --- BUILD --- ##
7070
- name: Build storybook

.github/workflows/release.yml

+8-4
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,22 @@ jobs:
2323
cache: yarn
2424

2525
- name: Install Dependencies
26-
run: yarn install --immutable
26+
run: yarn install --refresh-lockfile
27+
28+
- name: Add yarn.lock if changed
29+
run: |
30+
git diff --exit-code -- yarn.lock || git commit -m "chore(release): update yarn.lock if necessary" || echo "No changes to lockfile"
2731
2832
- name: Create Release Pull Request or Publish to npm
2933
id: changesets
3034
uses: changesets/action@v1
3135
with:
32-
version: yarn version:packages
33-
34-
# This expects you to have a script called release which does a build for your packages and calls changeset publish
3536
title: "chore: release"
3637
commit: "chore: release"
38+
# This expects you to have a script called release / version:packages
39+
# which does a build for your packages and calls changeset publish
3740
publish: yarn release
41+
version: yarn version:packages
3842

3943
env:
4044
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/vrt.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ jobs:
6060
## --- INSTALL --- ##
6161
- name: Install dependencies
6262
shell: bash
63-
run: yarn install --immutable
63+
run: yarn install --immutable --immutable-cache
6464

6565
- name: Generate metadata assets
6666
shell: bash

0 commit comments

Comments
 (0)