Fix release tagging (#4646)

This commit is contained in:
Francisco
2023-10-03 15:46:18 -03:00
committed by GitHub
parent b4a9c47e9b
commit 5d43060cdc
2 changed files with 1 additions and 4 deletions

View File

@ -147,16 +147,12 @@ jobs:
with:
name: ${{ github.ref_name }}
path: ${{ steps.pack.outputs.tarball }}
- name: Tag
run: npx changeset tag
- name: Publish
run: bash scripts/release/workflow/publish.sh
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
TARBALL: ${{ steps.pack.outputs.tarball }}
TAG: ${{ steps.pack.outputs.tag }}
- name: Push tags
run: git push --tags
- name: Create Github Release
uses: actions/github-script@v6
env:

View File

@ -9,6 +9,7 @@ module.exports = async ({ github, context }) => {
owner: context.repo.owner,
repo: context.repo.repo,
tag_name: `v${version}`,
target_commitish: github.ref_name,
body: extractSection(changelog, version),
prerelease: process.env.PRERELEASE === 'true',
});