Skip to content

Commit ee0bd3c

Browse files
committed
chore(ci): update GitHub Actions workflows and build config
Adjust docs and CI workflow triggers, add .yarnrc.yml for nodeLinker setting, and update tsconfig and package.json dependencies. Made-with: Cursor
1 parent 5a8599c commit ee0bd3c

6 files changed

Lines changed: 28 additions & 22 deletions

File tree

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,18 @@ jobs:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Checkout
13-
uses: actions/checkout@v3
13+
uses: actions/checkout@v4
1414

1515
- name: Set up Node
16-
uses: actions/setup-node@v3
16+
uses: actions/setup-node@v4
1717
with:
1818
node-version: "20"
19-
cache: "yarn"
19+
20+
- name: Enable Corepack
21+
run: corepack enable
2022

2123
- name: Install packages
22-
run: yarn install
24+
run: yarn install --immutable
2325

2426
- name: Build docs
2527
run: yarn build:docs

.github/workflows/workflow.yml

Lines changed: 20 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,21 @@ jobs:
88
name: Prepare environment
99
steps:
1010
- name: Checkout
11-
uses: actions/checkout@v3
12-
- uses: actions/setup-node@v3
11+
uses: actions/checkout@v4
12+
- name: Set up Node.js
13+
uses: actions/setup-node@v4
1314
with:
1415
node-version: "20"
15-
cache: "yarn"
16-
cache-dependency-path: yarn.lock
1716
env:
1817
FORCE_COLOR: 0
18+
- name: Enable Corepack
19+
run: corepack enable
1920
- name: Install node_modules on cache miss
2021
if: steps.cache-node-modules.outputs.cache-hit != 'true'
21-
run: yarn install --frozen-lockfile
22+
run: yarn install --immutable
2223
- name: Cache node_modules
2324
if: steps.cache-node-modules.outputs.cache-hit != 'true'
24-
uses: actions/cache/save@v3
25+
uses: actions/cache/save@v4
2526
with:
2627
path: node_modules
2728
key: yarn-${{ hashFiles('yarn.lock') }}
@@ -31,24 +32,26 @@ jobs:
3132
runs-on: ubuntu-latest
3233
steps:
3334
- name: Checkout
34-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
3536

3637
- name: Set up Node.js
37-
uses: actions/setup-node@v3
38+
uses: actions/setup-node@v4
3839
with:
3940
node-version: "20"
40-
cache: "yarn"
41+
42+
- name: Enable Corepack
43+
run: corepack enable
4144

4245
- name: Restore node_modules
43-
uses: actions/cache/restore@v3
46+
uses: actions/cache/restore@v4
4447
id: cache-node-modules
4548
with:
4649
path: node_modules
4750
key: yarn-${{ hashFiles('yarn.lock') }}
4851
fail-on-cache-miss: false
4952
- name: Install node_modules on cache miss
5053
if: steps.cache-node-modules.outputs.cache-hit != 'true'
51-
run: yarn install --frozen-lockfile
54+
run: yarn install --immutable
5255

5356
- name: Build
5457
run: yarn build
@@ -79,23 +82,23 @@ jobs:
7982
needs: tests
8083
steps:
8184
- name: Checkout
82-
uses: actions/checkout@v3
85+
uses: actions/checkout@v4
8386
- name: Set up Node.js
84-
uses: actions/setup-node@v3
87+
uses: actions/setup-node@v4
8588
with:
8689
node-version: "20"
87-
cache: "yarn"
88-
cache-dependency-path: yarn.lock
90+
- name: Enable Corepack
91+
run: corepack enable
8992
- name: Restore node_modules
90-
uses: actions/cache/restore@v3
93+
uses: actions/cache/restore@v4
9194
id: cache-node-modules
9295
with:
9396
path: node_modules
9497
key: yarn-${{ hashFiles('yarn.lock') }}
9598
fail-on-cache-miss: false
9699
- name: Install node_modules on cache miss
97100
if: steps.cache-node-modules.outputs.cache-hit != 'true'
98-
run: yarn install --frozen-lockfile
101+
run: yarn install --immutable
99102
- name: Build
100103
run: yarn build
101104
- name: Publish

.yarn/install-state.gz

243 KB
Binary file not shown.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"name": "react-zoom-pan-pinch",
33
"version": "0.0.0",
4+
"packageManager": "yarn@4.9.2",
45
"description": "Zoom and pan html elements in easy way",
56
"author": "prc5",
67
"license": "MIT",

tsconfig.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
"moduleResolution": "node",
1111
"forceConsistentCasingInFileNames": true,
1212
"strictNullChecks": true,
13-
"suppressImplicitAnyIndexErrors": true,
1413
"ignoreDeprecations": "5.0",
1514
"allowSyntheticDefaultImports": true,
1615
"baseUrl": "src",

0 commit comments

Comments
 (0)