Skip to content

Commit 96c612d

Browse files
committed
ci: update GitHub Actions and dependencies for improved workflow
- Upgraded actions/checkout to v5, actions/setup-node to v6, and pnpm/action-setup to v4.2.0 - Simplified pnpm setup by leveraging native caching in actions/setup-node, removing manual cache steps - Added registry-url and cache-dependency-path for better npm and pnpm integration - Switched to pnpm install --frozen-lockfile for reproducible installs - Updated dependencies including postcss, rollup, and added new packages for enhanced compatibility and security
1 parent 3decfa0 commit 96c612d

File tree

10 files changed

+1332
-889
lines changed

10 files changed

+1332
-889
lines changed

.github/workflows/ci.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,16 @@ jobs:
1010
ci:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- uses: actions/setup-node@v4
13+
- uses: actions/checkout@v5
14+
- uses: pnpm/action-setup@v4.2.0
15+
- uses: actions/setup-node@v6
1516
with:
1617
node-version: 22
18+
registry-url: 'https://registry.npmjs.org'
19+
cache: pnpm
20+
cache-dependency-path: pnpm-lock.yaml
1721

18-
- uses: pnpm/action-setup@v4.0.0
19-
with:
20-
version: 9.15.3
21-
22-
- uses: actions/cache@v4
23-
id: pnpm-cache
24-
with:
25-
path: |
26-
**/node_modules
27-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
28-
restore-keys: |
29-
${{ runner.os }}-pnpm-
30-
31-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
32-
run: pnpm install
22+
- run: pnpm install --frozen-lockfile
3323

3424
- run: pnpm run lint
3525
- run: pnpm run build

.github/workflows/publish-sandbox.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -9,26 +9,16 @@ jobs:
99
publish-sandbox:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v4
13-
- uses: actions/setup-node@v4
12+
- uses: actions/checkout@v5
13+
- uses: pnpm/action-setup@v4.2.0
14+
- uses: actions/setup-node@v6
1415
with:
1516
node-version: 22
17+
registry-url: 'https://registry.npmjs.org'
18+
cache: pnpm
19+
cache-dependency-path: pnpm-lock.yaml
1620

17-
- uses: pnpm/action-setup@v4.0.0
18-
with:
19-
version: 9.15.3
20-
21-
- uses: actions/cache@v4
22-
id: pnpm-cache
23-
with:
24-
path: |
25-
**/node_modules
26-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
27-
restore-keys: |
28-
${{ runner.os }}-pnpm-
29-
30-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
31-
run: pnpm install
21+
- run: pnpm install --frozen-lockfile
3222

3323
- run: pnpm run build
3424

.github/workflows/publish.yaml

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,30 +12,23 @@ jobs:
1212
publish:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-node@v4
15+
- uses: actions/checkout@v5
16+
- uses: pnpm/action-setup@v4.2.0
17+
- uses: actions/setup-node@v6
1718
with:
1819
node-version: 22
1920
registry-url: 'https://registry.npmjs.org'
21+
cache: pnpm
22+
cache-dependency-path: pnpm-lock.yaml
2023

21-
- uses: pnpm/action-setup@v4.0.0
22-
with:
23-
version: 9.15.3
24-
25-
- uses: actions/cache@v4
26-
id: pnpm-cache
27-
with:
28-
path: |
29-
**/node_modules
30-
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
31-
restore-keys: |
32-
${{ runner.os }}-pnpm-
33-
34-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
35-
run: pnpm install
24+
- run: npm i -g npm@latest
25+
- run: pnpm install --frozen-lockfile
3626

3727
- run: pnpm run lint
3828
- run: pnpm run test
3929
- run: pnpm run build
4030

41-
- run: cp ./README.md ./packages/text-vide/README.md && cd ./packages/text-vide && npm publish
31+
- run: |
32+
cp ./README.md ./packages/text-vide/README.md &&
33+
cd ./packages/text-vide &&
34+
npm publish --tag oidc

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v22.12.0

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ git clone https://github.com/<username>/text-vide.git
77
cd text-vide
88

99
pnpm install
10-
pnpm dev # run sandbox application (:3000)
10+
pnpm dev # run sandbox application (:5173)
1111
pnpm test
1212
pnpm lint
1313
pnpm build

apps/sandbox/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,16 @@
1111
"react-dom": "^18.0.0"
1212
},
1313
"devDependencies": {
14-
"@emotion/react": "^11.9.0",
15-
"@emotion/styled": "^11.8.1",
14+
"@emotion/react": "^11.14.0",
15+
"@emotion/styled": "^11.14.1",
1616
"@mui/material": "^5.8.1",
1717
"@types/react": "^18.0.0",
1818
"@types/react-dom": "^18.0.0",
19-
"@unocss/preset-wind": "^0.34.1",
20-
"@unocss/reset": "^0.34.1",
21-
"@vitejs/plugin-react": "^1.3.0",
19+
"@unocss/preset-wind": "^66.5.4",
20+
"@unocss/reset": "^66.5.4",
21+
"@vitejs/plugin-react": "^5.0.4",
2222
"text-vide": "workspace:*",
2323
"tsconfig": "workspace:*",
24-
"unocss": "^0.34.1"
24+
"unocss": "^66.5.4"
2525
}
2626
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"packageManager": "pnpm@9.15.3",
2+
"packageManager": "pnpm@10.19.0+sha512.c9fc7236e92adf5c8af42fd5bf1612df99c2ceb62f27047032f4720b33f8eacdde311865e91c411f2774f618d82f320808ecb51718bfa82c060c4ba7c76a32b8",
33
"engines": {
44
"node": ">=22.12.0"
55
},
@@ -29,8 +29,8 @@
2929
"prettier": "^2.6.2",
3030
"turbo": "^1.2.14",
3131
"typescript": "^4.6.4",
32-
"vite": "^4.2.1",
33-
"vitest": "^0.29.8"
32+
"vite": "^7.1.11",
33+
"vitest": "^4.0.1"
3434
},
3535
"lint-staged": {
3636
"*.{js,ts,tsx}": [

packages/text-vide/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "text-vide",
3-
"version": "1.8.2",
3+
"version": "1.8.3",
44
"description": "An Open-Source JavaScript Implementation of Bionic Reading.",
55
"repository": {
66
"type": "git",
@@ -38,7 +38,7 @@
3838
"release": "standard-version"
3939
},
4040
"devDependencies": {
41-
"@vitest/coverage-c8": "^0.29.8",
41+
"@vitest/coverage-v8": "^4.0.1",
4242
"standard-version": "^9.5.0",
4343
"tsconfig": "workspace:*",
4444
"utils": "workspace:*",

0 commit comments

Comments
 (0)