Kaynağa Gözat

Fix release tagging (#4646)

(cherry picked from commit 5d43060cdc17f72b1c25b6ff0d98f77b7fb79ea5)
Francisco 2 yıl önce
ebeveyn
işleme
d6954f17b5

+ 0 - 4
.github/workflows/release-cycle.yml

@@ -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:

+ 1 - 0
scripts/release/workflow/github-release.js

@@ -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',
   });