Skip to content

Commit b57cef9

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

File tree

7 files changed

+14
-11
lines changed

7 files changed

+14
-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

+7-4
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,21 @@ 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: git diff --exit-code -- yarn.lock || git add yarn.lock || echo "No changes to lockfile"
2730

2831
- name: Create Release Pull Request or Publish to npm
2932
id: changesets
3033
uses: changesets/action@v1
3134
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
3535
title: "chore: release"
3636
commit: "chore: release"
37+
# This expects you to have a script called release / version:packages
38+
# which does a build for your packages and calls changeset publish
3739
publish: yarn release
40+
version: yarn version:packages
3841

3942
env:
4043
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)