Fix release tagging (#4646)
This commit is contained in:
4
.github/workflows/release-cycle.yml
vendored
4
.github/workflows/release-cycle.yml
vendored
@ -147,16 +147,12 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: ${{ github.ref_name }}
|
name: ${{ github.ref_name }}
|
||||||
path: ${{ steps.pack.outputs.tarball }}
|
path: ${{ steps.pack.outputs.tarball }}
|
||||||
- name: Tag
|
|
||||||
run: npx changeset tag
|
|
||||||
- name: Publish
|
- name: Publish
|
||||||
run: bash scripts/release/workflow/publish.sh
|
run: bash scripts/release/workflow/publish.sh
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
TARBALL: ${{ steps.pack.outputs.tarball }}
|
TARBALL: ${{ steps.pack.outputs.tarball }}
|
||||||
TAG: ${{ steps.pack.outputs.tag }}
|
TAG: ${{ steps.pack.outputs.tag }}
|
||||||
- name: Push tags
|
|
||||||
run: git push --tags
|
|
||||||
- name: Create Github Release
|
- name: Create Github Release
|
||||||
uses: actions/github-script@v6
|
uses: actions/github-script@v6
|
||||||
env:
|
env:
|
||||||
|
|||||||
@ -9,6 +9,7 @@ module.exports = async ({ github, context }) => {
|
|||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
tag_name: `v${version}`,
|
tag_name: `v${version}`,
|
||||||
|
target_commitish: github.ref_name,
|
||||||
body: extractSection(changelog, version),
|
body: extractSection(changelog, version),
|
||||||
prerelease: process.env.PRERELEASE === 'true',
|
prerelease: process.env.PRERELEASE === 'true',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user