From 5fa7d32589425ae1036fe126246c272f58d52960 Mon Sep 17 00:00:00 2001 From: FairyEver <1711467488@qq.com> Date: Sat, 18 Apr 2020 16:34:10 +0800 Subject: [PATCH] ci: use bahmutov/npm-install@v1 --- .github/workflows/deploy.yml | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 384cd73a..b6830503 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,18 +12,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: '10.x' - - name: Download qshell + - uses: bahmutov/npm-install@v1 + - name: Build + run: npm run build:preview + - name: CDN download qshell run: | wget http://devtools.qiniu.com/qshell-linux-x86-v2.4.0.zip unzip qshell-linux-x86-v2.4.0.zip mv qshell-linux-x86-v2.4.0 qshell - - name: Install packages - run: npm i - - name: Build - run: npm run build:preview - name: CDN login run: ./qshell account ${{ secrets.AK }} ${{ secrets.SK }} GITHUB_ACTION - name: CDN upload @@ -48,13 +44,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: '10.x' + - uses: bahmutov/npm-install@v1 - name: Build - run: | - npm install - npm run build:preview + run: npm run build:preview - name: Deploy uses: SamKirkland/FTP-Deploy-Action@2.0.0 env: