Skip to content

Commit c9359fa

Browse files
authored
chore(.github/workflows): improve workflow with removing duplicated configs (#2874)
1 parent 51a742d commit c9359fa

File tree

9 files changed

+8
-16
lines changed

9 files changed

+8
-16
lines changed

.github/workflows/compressed-size-action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ jobs:
1212
with:
1313
node-version: 20
1414
cache: 'pnpm'
15-
cache-dependency-path: '**/pnpm-lock.yaml'
1615
- uses: preactjs/compressed-size-action@v2
1716
with:
1817
pattern: './dist/**/*.{js,mjs}'

.github/workflows/cr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- run: corepack enable
10+
- uses: pnpm/action-setup@v4
1111
- uses: actions/setup-node@v4
1212
with:
1313
node-version: 20

.github/workflows/ecosystem-ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ jobs:
1717
with:
1818
node-version: 22
1919
cache: 'pnpm'
20-
cache-dependency-path: '**/pnpm-lock.yaml'
21-
- run: pnpm install --frozen-lockfile
20+
- run: pnpm install
2221
- name: Get Short SHA
2322
id: short_sha
2423
run: |

.github/workflows/lint-and-type.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
with:
1717
node-version: 20
1818
cache: 'pnpm'
19-
cache-dependency-path: '**/pnpm-lock.yaml'
20-
- run: pnpm install --frozen-lockfile
19+
- run: pnpm install
2120
- run: pnpm test:format
2221
- run: pnpm test:types
2322
- run: pnpm test:lint

.github/workflows/livecodes-preview.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,8 @@ jobs:
1212
with:
1313
node-version: 20
1414
cache: 'pnpm'
15-
cache-dependency-path: '**/pnpm-lock.yaml'
1615
- uses: live-codes/preview-in-livecodes@v1
1716
with:
18-
install-command: pnpm install --frozen-lockfile
17+
install-command: pnpm install
1918
build-command: pnpm build
2019
base-url: 'https://{{LC::REF}}.preview-in-livecodes-demo.pages.dev'

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ jobs:
1515
node-version: 20
1616
registry-url: 'https://registry.npmjs.org'
1717
cache: 'pnpm'
18-
cache-dependency-path: '**/pnpm-lock.yaml'
19-
- run: pnpm install --frozen-lockfile
18+
- run: pnpm install
2019
- run: pnpm test
2120
- run: pnpm build
2221
- run: npm publish

.github/workflows/test-multiple-builds.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ jobs:
2121
with:
2222
node-version: 20
2323
cache: 'pnpm'
24-
cache-dependency-path: '**/pnpm-lock.yaml'
25-
- run: pnpm install --frozen-lockfile
24+
- run: pnpm install
2625
- run: pnpm build
2726
- name: Use React 17 for production test
2827
if: ${{ matrix.env == 'production' }}

.github/workflows/test-multiple-versions.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@ jobs:
1616
with:
1717
node-version: 20
1818
cache: 'pnpm'
19-
cache-dependency-path: '**/pnpm-lock.yaml'
20-
- run: pnpm install --frozen-lockfile
19+
- run: pnpm install
2120
- run: pnpm build # we don't have any other workflows to test build
2221
- run: pnpm test:spec
2322

.github/workflows/test-old-typescript.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ jobs:
3838
with:
3939
node-version: 20
4040
cache: 'pnpm'
41-
cache-dependency-path: '**/pnpm-lock.yaml'
42-
- run: pnpm install --frozen-lockfile
41+
- run: pnpm install
4342
- run: pnpm build
4443
- name: Patch for all TS
4544
run: |

0 commit comments

Comments
 (0)