mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-11-10 00:35:03 +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/setup-node@v2
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Cache node modules
|
||||
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 }}-
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
- run: npm install
|
||||
shell: bash
|
||||
- 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/setup-node@v2
|
||||
with:
|
||||
node-version: 14
|
||||
- name: Cache node modules
|
||||
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 }}-
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
- run: npm install
|
||||
shell: bash
|
||||
- run: echo '${{ github.ref }} ... ${{ github.sha }}'
|
||||
|
@ -32,7 +22,7 @@ jobs:
|
|||
export GITHUB_SHA=${{ github.sha }}
|
||||
export GITHUB_SHA_SUB=${GITHUB_SHA: 0: 7 }
|
||||
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
|
||||
if: ${{ success() }}
|
||||
- run: echo "🚀 This job's status is ${{ job.status }}."
|
||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -16,7 +16,6 @@ test-report.html
|
|||
.idea/
|
||||
yarn.lock
|
||||
yarn-error.log
|
||||
package-lock.json
|
||||
*.zip
|
||||
.history
|
||||
.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",
|
||||
"git add ."
|
||||
]
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=16.13.1"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user