From bc859c6a0d1c3ee59e88754e11bc504631c75ef5 Mon Sep 17 00:00:00 2001 From: Arc-E-Tect Date: Wed, 17 Jul 2024 00:33:27 +0200 Subject: [PATCH] use install semantic release explicitly instead of using clean-install --- .github/workflows/build-of-main.yml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-of-main.yml b/.github/workflows/build-of-main.yml index 0c38b17..6ed31b0 100644 --- a/.github/workflows/build-of-main.yml +++ b/.github/workflows/build-of-main.yml @@ -22,13 +22,21 @@ jobs: with: fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v4 + - name: Setup Node.js environment + uses: actions/setup-node@v4.0.3 with: node-version: "lts/*" + - name: Cache Node.js modules + uses: actions/cache@v2 + with: + path: ~/.npm + key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-node- + - name: Install dependencies - run: npm clean-install + run: npm install -g semantic-release @semantic-release/git @semantic-release/github @semantic-release/commit-analyzer - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies run: npm audit signatures