Skip to content

Commit

Permalink
fix(ci): update tsnode for node18 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
ZakaryCode committed Feb 19, 2024
1 parent 3da153f commit c159668
Show file tree
Hide file tree
Showing 10 changed files with 7,096 additions and 6,439 deletions.
31 changes: 20 additions & 11 deletions .github/workflows/deploy-github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,32 @@ jobs:
with:
ref: ${{ github.head_ref }}

- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
- name: Setup pnpm
uses: pnpm/action-setup@v3
with:
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- name: Cache pnpm modules and build
uses: actions/cache@v3
with:
path: |
node_modules
${{ env.STORE_PATH }}
build/taro-docs
key: ${{ runner.os }}-github
key: ${{ runner.os }}-pnpm-store-github
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/action-setup@v2
with:
version: 7
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
${{ runner.os }}-pnpm-store-
- name: Build
run: pnpm run build:github
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,19 @@ jobs:
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/action-setup@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

- name: Build
run: pnpm run build:zone
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/deploy-tcb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,19 @@ jobs:
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/action-setup@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

- name: Build
run: pnpm run build:zone
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,19 @@ jobs:
restore-keys: |
${{ runner.os }}-
- name: install
uses: pnpm/action-setup@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

- name: Build
run: pnpm run build:github
12 changes: 9 additions & 3 deletions .github/workflows/notion-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,19 @@ jobs:
restore-keys: |
${{ runner.os }}-
- name: Installation Dependencies
uses: pnpm/action-setup@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

- name: Fetch notion database
run: |
Expand Down
12 changes: 9 additions & 3 deletions .github/workflows/sync-components-types.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,19 @@ jobs:
restore-keys: |
${{ runner.os }}-
- name: Installation Dependencies
uses: pnpm/action-setup@v2
- name: Setup pnpm
uses: pnpm/action-setup@v2.4.0
with:
version: 7
version: 8
run_install: |
- recursive: true
args: [--frozen-lockfile, --strict-peer-dependencies]
- name: Setup Node 20
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org' # Don't touch!

- name: Push changes
id: auto-commit-action
Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"preinstall": "npx only-allow pnpm",
"prepare": "husky install",
"build": "npm run build:github",
"build:docs-api": "ts-node --project ./scripts/tsconfig.json ./scripts/docs",
"build:docs-api": "pnpm run tsx ./scripts/docs",
"build:github": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=taro docusaurus build --out-dir build/taro-docs",
"build:independent": "cross-env NODE_OPTIONS=--max-old-space-size=20480 docusaurus build --out-dir dist",
"build:zone": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=zone docusaurus build --out-dir dist",
Expand All @@ -15,13 +15,14 @@
"docusaurus": "docusaurus",
"lint": "eslint ./ --ext js,ts,tsx,md,mdx",
"lint:style": "stylelint ./**/*.{css,scss}",
"notion": "ts-node -r tsconfig-paths/register --project ./scripts/tsconfig.json --files ./scripts/notion/sync",
"notion:update": "ts-node -r tsconfig-paths/register --project ./scripts/tsconfig.json --files ./scripts/notion/update",
"notion": "pnpm run tsx --files ./scripts/notion/sync",
"notion:update": "pnpm run tsx --files ./scripts/notion/update",
"serve": "docusaurus serve",
"start": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=taro docusaurus start",
"start:en": "cross-env NODE_OPTIONS=--max-old-space-size=20480 BASE=taro docusaurus start --locale en",
"swizzle": "docusaurus swizzle",
"trans:en": "docusaurus write-translations --locale en"
"trans:en": "docusaurus write-translations --locale en",
"tsx": "ts-node --skipIgnore --project ./scripts/tsconfig.json"
},
"dependencies": {
"@docusaurus/core": "^2.4.3",
Expand All @@ -36,17 +37,17 @@
"miniapp-types": "^1.1.18",
"prism-react-renderer": "^1.3.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"tsconfig-paths": "^3.14.1"
"react-dom": "^17.0.2"
},
"devDependencies": {
"@algolia/client-search": "^4.13.0",
"@babel/core": "^7.19.1",
"@commitlint/cli": "^16.3.0",
"@commitlint/config-conventional": "^16.2.4",
"@commitlint/cli": "^17.6.6",
"@commitlint/config-conventional": "^17.6.6",
"@tarojs/components": "latest",
"@tarojs/runtime": "latest",
"@tsconfig/docusaurus": "^1.0.5",
"@tsconfig/node18": "^18.2.2",
"@types/lodash": "^4.14.182",
"@types/node": "^17.0.30",
"@types/react": "^17.0.44",
Expand Down Expand Up @@ -84,8 +85,9 @@
"stylelint-config-standard-scss": "^3.0.0",
"stylelint-order": "^5.0.0",
"swc-loader": "^0.1.16",
"ts-node": "^10.7.0",
"typescript": "^5.2.2",
"ts-node": "^10.9.1",
"tsconfig-paths": "^3.14.1",
"typescript": "^5.3.3",
"unique-commit-id": "^1.0.0",
"vue": "^3.2.39",
"webpack": "^5.88.2",
Expand Down
Loading

0 comments on commit c159668

Please sign in to comment.