Skip to content

Commit

Permalink
ci: comment with link to tag of released version
Browse files Browse the repository at this point in the history
  • Loading branch information
danielroe committed May 15, 2023
1 parent 5fdb6a6 commit f945cb1
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/release-pr.yml
Expand Up @@ -13,6 +13,7 @@ jobs:
if: ${{ github.event.issue.pull_request && github.event.comment.body == '/trigger release' }}
permissions:
id-token: write
pull-requests: write
runs-on: ubuntu-latest
timeout-minutes: 20

Expand Down Expand Up @@ -47,3 +48,15 @@ jobs:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
TAG: pr-${{ github.event.issue.number }}

- name: Post comment
uses: actions/github-script@v5
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: `:rocket: Release triggered! You can now install [nuxt@npm:nuxt3@pr-${{ github.event.issue.number }}](https://www.npmjs.com/package/nuxt3/v/pr-${{ github.event.issue.number }})`
})

0 comments on commit f945cb1

Please sign in to comment.