1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-02-23 00:22:19 +01:00

chore: apply a linter after updating the version in package.json (#7073)

This commit is contained in:
Gastón Fournier 2024-05-17 11:22:26 +02:00 committed by GitHub
parent 32b72cb62e
commit 1d97521232
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -76,10 +76,6 @@ jobs:
if: ${{ github.event.inputs.bump-main == 'true' }}
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- name: checkout main branch
uses: actions/checkout@v4
@ -91,10 +87,21 @@ jobs:
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
- name: Use Node js 18
uses: actions/setup-node@v4
with:
node-version: '18.x'
cache: 'yarn'
- name: upgrade package version
run: |
jq --arg version "${{ github.event.inputs.version }}+main" '.version=$version' package.json > package.json.tmp
mv package.json.tmp package.json
- name: lint
run: |
yarn install --frozen-lockfile --ignore-scripts
yarn lint:fix
- name: push changes
run: |
git add package.json
git commit -m "chore: bump version to ${{ github.event.inputs.version }}+main"
git push origin main