diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index da7c92de2..68e529748 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,8 +21,21 @@ jobs: node-version: 18 cache: 'npm' + - name: Cache Node Modules + id: cache-node-modules + uses: actions/cache@v3 + env: + cache-name: cache-node-modules + with: + path: ~/.npm + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} + restore-keys: | + ${{ runner.os }}-build-${{ env.cache-name }}- + ${{ runner.os }}-build + ${{ runner.os }}- - name: Install Dependencies run: npm ci + if: steps.cache-node-modules.outputs.cache-hit != true - name: Run all checks run: npm run check - name: Run Tests diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 68a9c1095..2ff2192bf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -10,16 +10,17 @@ on: workflow_dispatch: inputs: release: + description: Run Release Workflow required: true default: false type: boolean prerelease: - description: 'Make the release a pre-release' + description: Make the release a pre-release required: true default: true type: boolean draft: - description: 'Create draft release' + description: Create draft release required: true default: true type: boolean