Skip to content

Commit 06d9a37

Browse files
authored
deps: upgrade dependencies (#1867)
* update deps * Update package.json * update deps and workflows * refactor workflows * always checkout * Update action.yml * Update action.yml * Update action.yml * bump * Update action.yml * Update action.yml * update workflow * fix pnpm issues * upgrade eslint * complete workflows * Update eslint.config.ts * upgrade tailwind * Update .gitignore * upgrade nuxt content separately
1 parent faf8d6c commit 06d9a37

File tree

22 files changed

+3827
-3548
lines changed

22 files changed

+3827
-3548
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/actions/install/action.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: "Install Dependencies"
2+
description: "Install cached dependencies"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- uses: pnpm/action-setup@v3
8+
with:
9+
version: 9
10+
run_install: false
11+
12+
- uses: actions/setup-node@v4
13+
with:
14+
node-version: '20'
15+
cache: 'pnpm'
16+
17+
- name: Restore node_modules cache
18+
uses: actions/cache@v4
19+
id: pnpm-cache
20+
with:
21+
path: '**/node_modules'
22+
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
23+
restore-keys: |
24+
${{ runner.os }}-pnpm-
25+
26+
- name: Install dependencies
27+
shell: bash
28+
run: pnpm install --frozen-lockfile

.github/workflows/release.yml

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,25 @@
11
name: Release
2+
23
on:
34
push:
45
branches:
56
- master
67
- next
78
- beta
9+
810
jobs:
911
release:
10-
runs-on: ubuntu-18.04
12+
runs-on: ubuntu-latest
1113
steps:
12-
- uses: actions/checkout@v3
13-
- uses: actions/setup-node@v3
14-
with:
15-
node-version: 16
16-
cache: yarn
17-
- uses: actions/cache@v3
18-
id: yarn-cache
19-
with:
20-
path: node_modules
21-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
22-
restore-keys: ${{ runner.os }}-yarn-
14+
- uses: actions/checkout@v4
2315

24-
- name: Install dependencies
25-
run: yarn install --frozen-lockfile
16+
- uses: ./.github/actions/install
2617

2718
- name: Test
28-
run: yarn test
19+
run: pnpm run test
2920

3021
- name: Build
31-
run: yarn build
22+
run: pnpm run build
3223

3324
- name: Release
3425
env:

.github/workflows/test.yml

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,42 @@
11
name: Test & Build
2+
23
on: [pull_request]
4+
5+
concurrency:
6+
group: ${{ github.workflow }}-${{ github.ref }}
7+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
8+
39
jobs:
410
test:
5-
runs-on: ubuntu-18.04
11+
runs-on: ubuntu-latest
612
steps:
7-
- uses: actions/checkout@v3
8-
- uses: actions/setup-node@v3
9-
with:
10-
node-version: 16
11-
cache: yarn
12-
- uses: actions/cache@v3
13-
id: yarn-cache
14-
with:
15-
path: node_modules
16-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
17-
restore-keys: ${{ runner.os }}-yarn-
13+
- uses: actions/checkout@v4
1814

19-
- name: Install dependencies
20-
run: yarn install --frozen-lockfile
15+
- uses: ./.github/actions/install
2116

2217
- name: Test with Coverage
23-
run: yarn coverage
18+
run: pnpm run coverage
2419

2520
- name: ESLint
26-
run: yarn eslint
21+
run: pnpm run lint
2722

2823
- name: Report Coverage
29-
uses: coverallsapp/github-action@master
24+
uses: coverallsapp/github-action@v2
3025
with:
3126
github-token: ${{ secrets.GITHUB_TOKEN }}
3227

3328
build:
34-
runs-on: ubuntu-18.04
29+
runs-on: ubuntu-latest
3530
steps:
36-
- uses: actions/checkout@v3
37-
- uses: actions/setup-node@v3
38-
with:
39-
node-version: 16
40-
cache: yarn
41-
- uses: actions/cache@v3
42-
id: yarn-cache
43-
with:
44-
path: '**/node_modules'
45-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
46-
restore-keys: ${{ runner.os }}-yarn-
31+
- uses: actions/checkout@v4
4732

48-
- name: Install dependencies
49-
run: yarn install --frozen-lockfile --prefer-offline
33+
- uses: ./.github/actions/install
5034

5135
- name: Build Dist
52-
run: yarn build
36+
run: pnpm run build
5337

5438
- name: Bundlewatch
5539
run: npx bundlewatch
5640

5741
- name: Build Docs
58-
run: |
59-
cd docs
60-
yarn install --frozen-lockfile --prefer-offline
61-
yarn build
42+
run: pnpm run build:docs

docs/.data/content/contents.sqlite

504 KB
Binary file not shown.

docs/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ node_modules
55
.cache
66
.output
77
.env
8+
.data
89
dist

0 commit comments

Comments
 (0)