Update release.yml

This commit is contained in:
Mattia Astorino 2020-09-05 10:37:00 +02:00 committed by GitHub
parent d6662f5d54
commit 25f2a2fef3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -11,44 +11,6 @@ on:
- '*' - '*'
jobs: jobs:
prepare:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x]
steps:
- uses: actions/checkout@v2
- name: Use Node Version 12
uses: actions/setup-node@v1
with:
node-version: 12
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- uses: actions/cache@v2
name: Cache node_modules
id: cache-node-modules
with:
path: node_modules
key: ${{ runner.os }}-${{ matrix.node-version }}-nodemodules-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-${{ matrix.node-version }}-nodemodules-
- name: Install Dependencies
run: yarn --frozen-lockfile
if: steps.cache-yarn-cache.outputs.cache-hit != 'true' || steps.cache-node-modules.outputs.cache-hit != 'true'
release: release:
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: contains(github.ref, 'tag') if: contains(github.ref, 'tag')