From a2116473bb6f61cc9c63a35d661284515abbbf49 Mon Sep 17 00:00:00 2001 From: Kanad Gupta Date: Mon, 13 Feb 2023 18:21:57 -0500 Subject: [PATCH] chore: cleanup + cache --- .github/workflows/release.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5bf662272..5159ea14b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,3 @@ -name: Release on: push: branches: @@ -11,17 +10,16 @@ jobs: if: "!contains(github.event.head_commit.message, 'skip release')" runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v3 + - uses: actions/checkout@v3 with: fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v3 + - uses: actions/setup-node@v3 with: node-version: 16 + cache: 'npm' - name: Install dependencies and build TS run: npm ci && npm run build - - name: Release + - name: Run semantic-release workflow env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}