From e0b32e119f5127b525d5c91e4fc66f6a0fb916a2 Mon Sep 17 00:00:00 2001 From: Roussange Alexandre Date: Mon, 18 Aug 2025 11:20:57 +0200 Subject: [PATCH] enhance: Update Biome setup to use package-lock version --- .github/workflows/lint.yaml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index b752cdfa5..8c0eb13e9 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -22,10 +22,16 @@ jobs: run: npm ci working-directory: ./crowdsec-docs/ + - name: Get Biome version from package.json + id: biome-version + run: | + VERSION=$(node -p "require('./crowdsec-docs/package.json').devDependencies['@biomejs/biome']") + echo "version=$VERSION" >> $GITHUB_OUTPUT + - name: Setup Biome uses: biomejs/setup-biome@v2 with: - version: latest + version: ${{ steps.biome-version.outputs.version }} - name: Run Biome run: biome ci . \ No newline at end of file