From f945cb19768e7d145909ffdafe0d302dbfcd4a5d Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Mon, 15 May 2023 22:53:25 +0100 Subject: [PATCH] ci: comment with link to tag of released version --- .github/workflows/release-pr.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/release-pr.yml b/.github/workflows/release-pr.yml index cba106c8d9..2977e96ded 100644 --- a/.github/workflows/release-pr.yml +++ b/.github/workflows/release-pr.yml @@ -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 @@ -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 }})` + })