From 3f79619e0b222b70d44a308c2ec2e372794ec09c Mon Sep 17 00:00:00 2001 From: Stefan Dobrev Date: Fri, 9 Aug 2024 09:21:07 +0300 Subject: [PATCH] Add Wingman and caching to CI workflow --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d829608..06d83b4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,6 +12,9 @@ on: jobs: ci: runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - uses: actions/checkout@v4 @@ -20,9 +23,14 @@ jobs: uses: actions/setup-node@v4 with: node-version-file: ".nvmrc" + cache: "npm" - name: Install dependencies - run: npm install + run: npm ci - name: Run CI scripts run: npm run ci + + - name: Fix my build + uses: fly-ci/wingman-action@v1 + if: failure()