mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-09-20 02:34:24 +08:00
ci: update node version to 16.13
This commit is contained in:
parent
b2cd1b39e5
commit
fdf7f22982
14
.github/workflows/pull-request.yml
vendored
14
.github/workflows/pull-request.yml
vendored
|
@ -11,18 +11,8 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: '16'
|
||||||
- name: Cache node modules
|
cache: 'npm'
|
||||||
uses: actions/cache@v2
|
|
||||||
env:
|
|
||||||
cache-name: cache-node-modules
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: npm run lint
|
- run: npm run lint
|
||||||
|
|
16
.github/workflows/push.yml
vendored
16
.github/workflows/push.yml
vendored
|
@ -9,18 +9,8 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- uses: actions/setup-node@v2
|
- uses: actions/setup-node@v2
|
||||||
with:
|
with:
|
||||||
node-version: 14
|
node-version: '16'
|
||||||
- name: Cache node modules
|
cache: 'npm'
|
||||||
uses: actions/cache@v2
|
|
||||||
env:
|
|
||||||
cache-name: cache-node-modules
|
|
||||||
with:
|
|
||||||
path: ~/.npm
|
|
||||||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
|
|
||||||
restore-keys: |
|
|
||||||
${{ runner.os }}-build-${{ env.cache-name }}-
|
|
||||||
${{ runner.os }}-build-
|
|
||||||
${{ runner.os }}-
|
|
||||||
- run: npm install
|
- run: npm install
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: echo '${{ github.ref }} ... ${{ github.sha }}'
|
- run: echo '${{ github.ref }} ... ${{ github.sha }}'
|
||||||
|
@ -32,7 +22,7 @@ jobs:
|
||||||
export GITHUB_SHA=${{ github.sha }}
|
export GITHUB_SHA=${{ github.sha }}
|
||||||
export GITHUB_SHA_SUB=${GITHUB_SHA: 0: 7 }
|
export GITHUB_SHA_SUB=${GITHUB_SHA: 0: 7 }
|
||||||
export DEPLOY_DOMAIN=https://preview-$GITHUB_SHA_SUB-tdesign-vue-next-starter.surge.sh
|
export DEPLOY_DOMAIN=https://preview-$GITHUB_SHA_SUB-tdesign-vue-next-starter.surge.sh
|
||||||
npx surge --project ./dist --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }}
|
npx surge --project ./dist --domain $DEPLOY_DOMAIN --token ${{ secrets.TDESIGN_SURGE_TOKEN }}
|
||||||
echo the preview URL is $DEPLOY_DOMAIN
|
echo the preview URL is $DEPLOY_DOMAIN
|
||||||
if: ${{ success() }}
|
if: ${{ success() }}
|
||||||
- run: echo "🚀 This job's status is ${{ job.status }}."
|
- run: echo "🚀 This job's status is ${{ job.status }}."
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,7 +16,6 @@ test-report.html
|
||||||
.idea/
|
.idea/
|
||||||
yarn.lock
|
yarn.lock
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
package-lock.json
|
|
||||||
*.zip
|
*.zip
|
||||||
.history
|
.history
|
||||||
.stylelintcache
|
.stylelintcache
|
||||||
|
|
17253
package-lock.json
generated
Normal file
17253
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
|
@ -75,5 +75,8 @@
|
||||||
"npm run stylelint:fix",
|
"npm run stylelint:fix",
|
||||||
"git add ."
|
"git add ."
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
"engines": {
|
||||||
|
"node": ">=16.13.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user