Skip to content

Commit

Permalink
Merge pull request #6 from HadTeam/refactor-ts
Browse files Browse the repository at this point in the history
Update CI
  • Loading branch information
CornWorld authored Dec 27, 2024
2 parents 790b7dd + a3d640b commit 8283a95
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 14 deletions.
31 changes: 18 additions & 13 deletions .github/workflows/updateWebsite.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,29 @@
name: update website
on:
- push
- pull_request
push:
branches:
- main
jobs:
processData:
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
name: process data file
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.14.2
- name: Use Node.js 22.12.0
uses: actions/setup-node@v1
with:
node-version: 16.14.2
node-version: 22.12.0
- name: get commit info
id: commit
uses: pr-mpt/actions-commit-hash@v1
with:
prefix: 'commit_'
- name: npm install, start process
- name: Install Yarn
run: npm install -g yarn
- name: yarn install & process
run: |
cd ./src/data
npm install
yarn install
node processData.js
env:
COMMITID: ${{ steps.commit.outputs.short }}
Expand All @@ -35,17 +38,19 @@ jobs:
deploy:
name: deploy to Tencent COS
needs: processData
runs-on: ubuntu-20.04
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Use Node.js 16.14.2
- name: Use Node.js 22.12.0
uses: actions/setup-node@v1
with:
node-version: 16.14.2
- name: npm install, build
node-version: 22.12.0
- name: Install Yarn
run: npm install -g yarn
- name: yarn install & build
run: |
npm install
npm run build
yarn install
yarn build
env:
CI: false
NODE_ENV: production
Expand Down
2 changes: 1 addition & 1 deletion src/data/processed/buildInfo.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"commitId":"commit_d092bce","time":"2024-12-27T18:41:52.963+08:00"}
{"commitId":"commit_b8a3640","time":"2024-12-27T18:50:13.736+08:00"}
53 changes: 53 additions & 0 deletions src/data/yarn.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


crypto@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/crypto/-/crypto-1.0.1.tgz#2af1b7cad8175d24c8a1b0778255794a21803037"
integrity sha512-VxBKmeNcqQdiUQUW2Tzq0t377b54N2bMtXO/qiLa+6eRRmmC4qT3D4OnTGoT/U6O9aklQ/jTwbOtRMTTY8G0Ig==

csv-generate@^4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/csv-generate/-/csv-generate-4.4.2.tgz#001d7eda4993a72d24f73e15c9b9d7b251af8a2e"
integrity sha512-W6nVsf+rz0J3yo9FOjeer7tmzBJKaTTxf7K0uw6GZgRocZYPVpuSWWa5/aoWWrjQZj4/oNIKTYapOM7hiNjVMA==

csv-parse@^5.6.0:
version "5.6.0"
resolved "https://registry.yarnpkg.com/csv-parse/-/csv-parse-5.6.0.tgz#219beace2a3e9f28929999d2aa417d3fb3071c7f"
integrity sha512-l3nz3euub2QMg5ouu5U09Ew9Wf6/wQ8I++ch1loQ0ljmzhmfZYrH9fflS22i/PQEvsPvxCwxgz5q7UB8K1JO4Q==

csv-stringify@^6.5.2:
version "6.5.2"
resolved "https://registry.yarnpkg.com/csv-stringify/-/csv-stringify-6.5.2.tgz#b51d61cd949906d5b5b790463f3055d95915193e"
integrity sha512-RFPahj0sXcmUyjrObAK+DOWtMvMIFV328n4qZJhgX3x2RqkQgOTU2mCUmiFR0CzM6AzChlRSUErjiJeEt8BaQA==

csv@^6.0.5:
version "6.3.11"
resolved "https://registry.yarnpkg.com/csv/-/csv-6.3.11.tgz#c6dd1242e7543f67148827c6458ea668aee583f0"
integrity sha512-a8bhT76Q546jOElHcTrkzWY7Py925mfLO/jqquseH61ThOebYwOjLbWHBqdRB4K1VpU36sTyIei6Jwj7QdEZ7g==
dependencies:
csv-generate "^4.4.2"
csv-parse "^5.6.0"
csv-stringify "^6.5.2"
stream-transform "^3.3.3"

fs@^0.0.1-security:
version "0.0.1-security"
resolved "https://registry.yarnpkg.com/fs/-/fs-0.0.1-security.tgz#8a7bd37186b6dddf3813f23858b57ecaaf5e41d4"
integrity sha512-3XY9e1pP0CVEUCdj5BmfIZxRBTSDycnbqhIOGec9QYtmVH2fbLpj86CFWkrNOkt/Fvty4KZG5lTglL9j/gJ87w==

luxon@^2.3.1:
version "2.5.2"
resolved "https://registry.yarnpkg.com/luxon/-/luxon-2.5.2.tgz#17ed497f0277e72d58a4756d6a9abee4681457b6"
integrity sha512-Yg7/RDp4nedqmLgyH0LwgGRvMEKVzKbUdkBYyCosbHgJ+kaOUx0qzSiSatVc3DFygnirTPYnMM2P5dg2uH1WvA==

object-hash@^3.0.0:
version "3.0.0"
resolved "https://registry.yarnpkg.com/object-hash/-/object-hash-3.0.0.tgz#73f97f753e7baffc0e2cc9d6e079079744ac82e9"
integrity sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==

stream-transform@^3.3.3:
version "3.3.3"
resolved "https://registry.yarnpkg.com/stream-transform/-/stream-transform-3.3.3.tgz#d130bfed33739de6ef190a8f06cc8ad1b4c1635a"
integrity sha512-dALXrXe+uq4aO5oStdHKlfCM/b3NBdouigvxVPxCdrMRAU6oHh3KNss20VbTPQNQmjAHzZGKGe66vgwegFEIog==

0 comments on commit 8283a95

Please sign in to comment.