1
0
forked from um/web

Update: [CI] Remove Cache (because using npm ci)

This commit is contained in:
MengYX 2021-02-08 14:01:41 +08:00
parent ca82842b04
commit 6a2dd672f3
No known key found for this signature in database
GPG Key ID: E63F9C7303E8F604
2 changed files with 10 additions and 28 deletions

View File

@ -36,18 +36,9 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 14.x - name: Use Node.js 14.x
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: 14.x node-version: "14"
- 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-
- name: Install Dependencies - name: Install Dependencies
run: | run: |

View File

@ -12,18 +12,9 @@ jobs:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js 14.x - name: Use Node.js 14.x
uses: actions/setup-node@v1 uses: actions/setup-node@v2
with: with:
node-version: 14.x node-version: "14"
- 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-
- name: Install Dependencies - name: Install Dependencies
run: | run: |
@ -78,7 +69,7 @@ jobs:
draft: true draft: true
- name: Upload Release Assets - legacy.tar.gz - name: Upload Release Assets - legacy.tar.gz
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -88,7 +79,7 @@ jobs:
asset_content_type: application/gzip asset_content_type: application/gzip
- name: Upload Release Assets - legacy.zip - name: Upload Release Assets - legacy.zip
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -98,7 +89,7 @@ jobs:
asset_content_type: application/zip asset_content_type: application/zip
- name: Upload Release Assets - modern.tar.gz - name: Upload Release Assets - modern.tar.gz
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -108,7 +99,7 @@ jobs:
asset_content_type: application/gzip asset_content_type: application/gzip
- name: Upload Release Assets - modern.zip - name: Upload Release Assets - modern.zip
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -118,7 +109,7 @@ jobs:
asset_content_type: application/zip asset_content_type: application/zip
- name: Upload Release Assets - extension.zip - name: Upload Release Assets - extension.zip
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with:
@ -128,7 +119,7 @@ jobs:
asset_content_type: application/zip asset_content_type: application/zip
- name: Upload Release Assets - sha256sum.txt - name: Upload Release Assets - sha256sum.txt
uses: actions/upload-release-asset@v1.0.2 uses: actions/upload-release-asset@v1
env: env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with: with: