Skip to content

Commit

Permalink
feat(github-actions): set release note to latest
Browse files Browse the repository at this point in the history
  • Loading branch information
amtins committed Jun 21, 2023
1 parent 62c2ca9 commit 2154923
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/npm-publish-github-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:

steps:
- uses: actions/checkout@v3
- uses: actions/github-script@v6

- name: Setup node environment
uses: actions/setup-node@v3
Expand All @@ -42,6 +43,16 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

- name: Update release note
if: success()
run: |
octokit.rest.repos.updateRelease({
owner: context.repo.owner,
repo: context.repo.repo,
release_id: ${{ inputs.release-tag }},
make_latest: true
})
- name: Tag does not exist
env:
AVAILABLE_VERSIONS: $(npm view @amtins/super-duper-ci versions --json)
Expand Down

0 comments on commit 2154923

Please sign in to comment.