Skip to content

Commit

Permalink
Merge pull request #45 from freeshineit/develop
Browse files Browse the repository at this point in the history
examples: update
  • Loading branch information
freeshineit authored Jun 1, 2024
2 parents a4a3baa + 6a72a24 commit 2320777
Show file tree
Hide file tree
Showing 6 changed files with 11,302 additions and 7 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/build-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: build-examples

on:
push:
branches: ['master', 'develop']
pull_request:
branches: ['master']

jobs:
build:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x, 20.x, 21.x, 22.x]

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

# 不用pnpm是因为pnpm的workspace的影响
- name: Build cra-app
working-directory: ./examples/cra-app
run: |
yarn install
yarn run build
- name: Build with-vite
working-directory: ./examples/with-vite
run: |
yarn install
yarn run build
2 changes: 1 addition & 1 deletion .github/workflows/cl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

strategy:
matrix:
node-version: [16.x, 18.x, 20.x, 21.x]
node-version: [16.x, 18.x, 20.x, 21.x, 22.x]

steps:
- uses: actions/checkout@v4
Expand Down
7 changes: 5 additions & 2 deletions examples/cra-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"react": "^18.2.0",
"react-clipboardjs-copy": "2.0.2",
"react-dom": "^18.2.0",
"react-scripts": "5.0.1",
"typescript": "^4.4.2",
"web-vitals": "^2.1.0",
"react-clipboardjs-copy": "2.0.2"
"web-vitals": "^2.1.0"
},
"scripts": {
"start": "react-scripts start",
Expand All @@ -40,5 +40,8 @@
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"sass": "^1.77.4"
}
}
Loading

0 comments on commit 2320777

Please sign in to comment.