From 781394e5668b212903e9791d7d4bf745760bfb84 Mon Sep 17 00:00:00 2001 From: chenshuai2144 Date: Tue, 8 Dec 2020 19:17:46 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20CI=20:=20fix=20azure-pipelines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/deploy.yml | 6 ++++-- azure-pipelines.yml | 21 +++++++++++---------- 2 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0415c8e3..ab058459 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,12 +16,14 @@ jobs: - name: plugins run: yarn add umi-plugin-antd-theme umi-plugin-pro + - name: site run: npm run site + - name: deploy - uses: peaceiris/actions-gh-pages@v2 + uses: peaceiris/actions-gh-pages@v3 env: - ACTIONS_DEPLOY_KEY: ${{ secrets.ACTION_TOKEN }} + github_token: ${{ secrets.ACTION_TOKEN }} PUBLISH_BRANCH: gh-pages PUBLISH_DIR: ./dist with: diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 3c302440..6a387356 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -16,7 +16,7 @@ jobs: steps: - checkout: self clean: false - - script: npm install + - script: npm install --force displayName: install - script: npm run lint displayName: lint @@ -31,12 +31,13 @@ jobs: pool: vmImage: 'Ubuntu-16.04' - container: - image: circleci/node:latest-browsers - options: '-u root' - steps: - - script: npm install + - checkout: self + clean: false + - task: NodeTool@0 + inputs: + versionSpec: '14.x' + - script: npm install --force displayName: install - script: npm run test:all env: @@ -50,8 +51,8 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '12.x' - - script: npm install + versionSpec: '14.x' + - script: npm install --force displayName: install - script: npm run lint displayName: lint @@ -73,8 +74,8 @@ jobs: steps: - task: NodeTool@0 inputs: - versionSpec: '12.x' - - script: npm install + versionSpec: '14.x' + - script: npm install --force displayName: install - script: npm run lint displayName: lint