From 1c442ce08e352dcacab361ef8b583a32e1d16e13 Mon Sep 17 00:00:00 2001 From: Hazork Date: Mon, 13 Sep 2021 12:24:37 -0300 Subject: [PATCH] ci: updated ci to support better caching --- .github/dependabot.yml | 1 + .github/workflows/publish.yml | 16 +++++----------- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 5ff58d1..3696964 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -4,6 +4,7 @@ updates: directory: './' schedule: interval: 'daily' + - package-ecosystem: 'github-actions' directory: '/' schedule: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index bff981f..4a778ee 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,20 +16,14 @@ jobs: ref: ${{ github.head_ref }} fetch-depth: 0 - - name: Setup Node.js + - name: Setup node and restore cached dependencies uses: actions/setup-node@v2 with: - node-version: '14' - registry-url: 'https://registry.npmjs.org/' + node-version: '16' + cache: 'yarn' - - name: Install deps (with cache) - uses: bahmutov/npm-install@v1 - with: - # delete yarn.lock and create an package-lock.json - useLockFile: false - - - name: Lint - run: npm run lint + - name: Install packages + run: yarn --prefer-offline - name: Build run: npm run build