ci: update node version to 16.13

This commit is contained in:
94dreamer 2021-12-15 18:20:45 +08:00
parent b2cd1b39e5
commit fdf7f22982
7 changed files with 17264 additions and 27 deletions

View File

@ -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

View File

@ -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
View File

@ -16,7 +16,6 @@ test-report.html
.idea/
yarn.lock
yarn-error.log
package-lock.json
*.zip
.history
.stylelintcache

1
.npmrc Normal file
View File

@ -0,0 +1 @@
engine-strict=true

1
.nvmrc Normal file
View File

@ -0,0 +1 @@
v16.13.1

17253
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

View File

@ -75,5 +75,8 @@
"npm run stylelint:fix",
"git add ."
]
},
"engines": {
"node": ">=16.13.1"
}
}