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