diff --git a/.github/workflows/publish-new-version.yaml b/.github/workflows/publish-new-version.yaml index 1d060984bcd6..5e519bcbfd62 100644 --- a/.github/workflows/publish-new-version.yaml +++ b/.github/workflows/publish-new-version.yaml @@ -100,13 +100,15 @@ jobs: run: | jq --arg version "${{ github.event.inputs.version }}+main" '.version=$version' package.json > package.json.tmp mv package.json.tmp package.json + - name: checkout changelog from ${{ github.ref_name }} + run: git checkout origin/${{ github.ref_name }} -- CHANGELOG.md - name: lint run: | yarn install --frozen-lockfile --ignore-scripts yarn lint:fix - name: push changes run: | - git add package.json + git add package.json CHANGELOG.md git commit -m "chore: bump version to ${{ github.event.inputs.version }}+main" git push origin main