Skip to content

Commit

Permalink
fix(github-actions): get release by tag
Browse files Browse the repository at this point in the history
  • Loading branch information
amtins committed Jun 21, 2023
1 parent 5e624ac commit 9dc2849
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,16 @@ jobs:
script: |
const { RELEASE_TAG } = process.env
const { id } = await github.rest.repos.getReleaseByTag({
owner: context.repo.owner,
repo: context.repo.repo,
tag: `v${RELEASE_TAG}`
})
github.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: `tag/${RELEASE_TAG}`,
release_id: id,
make_latest: true
})
Expand Down

0 comments on commit 9dc2849

Please sign in to comment.