Skip to content

Commit 9ca8586

Browse files
committed
chore(.github/workflows): improve workflow with removing duplicated configs
1 parent 51c00d2 commit 9ca8586

7 files changed

+6
-12
lines changed

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

-1
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

+1-1
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/lint-and-type.yml

+1-2
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/publish.yml

+1-2
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

+1-2
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: Patch for DEV-ONLY
2827
if: ${{ matrix.env == 'development' }}

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

+1-2
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

+1-2
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ jobs:
3131
with:
3232
node-version: 20
3333
cache: 'pnpm'
34-
cache-dependency-path: '**/pnpm-lock.yaml'
35-
- run: pnpm install --frozen-lockfile
34+
- run: pnpm install
3635
- run: pnpm build
3736
- name: Patch for all TS
3837
run: |

0 commit comments

Comments
 (0)