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:
parent
32b72cb62e
commit
1d97521232
15
.github/workflows/publish-new-version.yaml
vendored
15
.github/workflows/publish-new-version.yaml
vendored
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user