From 6a2dd672f339ba1b3798dbe0142f79f58be7c894 Mon Sep 17 00:00:00 2001 From: MengYX Date: Mon, 8 Feb 2021 14:01:41 +0800 Subject: [PATCH] Update: [CI] Remove Cache (because using `npm ci`) --- .github/workflows/build.yml | 13 ++----------- .github/workflows/release.yml | 25 ++++++++----------------- 2 files changed, 10 insertions(+), 28 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 87e1f87..831c716 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,18 +36,9 @@ jobs: - uses: actions/checkout@v2 - name: Use Node.js 14.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: 14.x - - - name: Get npm cache directory - id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 - with: - path: ${{ steps.npm-cache.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node- + node-version: "14" - name: Install Dependencies run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e641fe4..ec8c119 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,18 +12,9 @@ jobs: - uses: actions/checkout@v2 - name: Use Node.js 14.x - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: 14.x - - - name: Get npm cache directory - id: npm-cache - run: echo "::set-output name=dir::$(npm config get cache)" - - uses: actions/cache@v2 - with: - path: ${{ steps.npm-cache.outputs.dir }} - key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} - restore-keys: ${{ runner.os }}-node- + node-version: "14" - name: Install Dependencies run: | @@ -78,7 +69,7 @@ jobs: draft: true - name: Upload Release Assets - legacy.tar.gz - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -88,7 +79,7 @@ jobs: asset_content_type: application/gzip - name: Upload Release Assets - legacy.zip - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -98,7 +89,7 @@ jobs: asset_content_type: application/zip - name: Upload Release Assets - modern.tar.gz - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -108,7 +99,7 @@ jobs: asset_content_type: application/gzip - name: Upload Release Assets - modern.zip - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -118,7 +109,7 @@ jobs: asset_content_type: application/zip - name: Upload Release Assets - extension.zip - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: @@ -128,7 +119,7 @@ jobs: asset_content_type: application/zip - name: Upload Release Assets - sha256sum.txt - uses: actions/upload-release-asset@v1.0.2 + uses: actions/upload-release-asset@v1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: