Skip to content

Commit e0b32e1

Browse files
committed
enhance: Update Biome setup to use package-lock version
1 parent 2641ab2 commit e0b32e1

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/lint.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ jobs:
2222
run: npm ci
2323
working-directory: ./crowdsec-docs/
2424

25+
- name: Get Biome version from package.json
26+
id: biome-version
27+
run: |
28+
VERSION=$(node -p "require('./crowdsec-docs/package.json').devDependencies['@biomejs/biome']")
29+
echo "version=$VERSION" >> $GITHUB_OUTPUT
30+
2531
- name: Setup Biome
2632
uses: biomejs/setup-biome@v2
2733
with:
28-
version: latest
34+
version: ${{ steps.biome-version.outputs.version }}
2935

3036
- name: Run Biome
3137
run: biome ci .

0 commit comments

Comments
 (0)