refactor workflows

This commit is contained in:
Eric Fennis
2021-08-26 13:22:20 +02:00
parent 2d5a5fd90a
commit 9a04665ad2
4 changed files with 720 additions and 99 deletions

View File

@@ -31,16 +31,16 @@ jobs:
runs-on: ubuntu-latest
needs: pre-build
steps:
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/setup-node@v2
with:
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --pure-lockfile
run: yarn
- name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
@@ -69,15 +69,14 @@ jobs:
needs: pre-build
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/setup-node@v2
with:
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --pure-lockfile
run: yarn
- name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
@@ -108,17 +107,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
- uses: actions/cache@v2
with:
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --pure-lockfile
run: yarn
- name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
@@ -149,17 +143,12 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '12.x'
- uses: actions/cache@v2
with:
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --pure-lockfile
run: yarn
- name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
@@ -188,12 +177,11 @@ jobs:
needs: pre-build
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/setup-node@v2
with:
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --pure-lockfile
@@ -225,15 +213,14 @@ jobs:
needs: pre-build
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
- uses: actions/setup-node@v2
with:
path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Install dependencies
run: yarn --pure-lockfile
run: yarn
- name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
@@ -261,8 +248,12 @@ jobs:
runs-on: ubuntu-latest
needs: pre-build
steps:
- name: Clone 'Lucide'
uses: actions/checkout@v2
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'yarn'
cache-dependency-path: yarn.lock
- name: Update repos
run: sudo apt-get update
@@ -295,7 +286,7 @@ jobs:
run: sudo yarn add svg-outline-stroke -W
- name: "Outline SVG"
run: node scripts/outlineSvg.js
run: yarn build:outline-icons
- name: Build 'Lucide'
run: |