Skip to content

Commit

Permalink
fix: use payload.release.tag_name for npm package release (#1665)
Browse files Browse the repository at this point in the history
## PR Checklist

- [x] Addresses an existing open issue: fixes #1115
- [x] That issue was marked as [`status: accepting
prs`](https://github.com/JoshuaKGoldberg/create-typescript-app/issues?q=is%3Aopen+is%3Aissue+label%3A%22status%3A+accepting+prs%22)
- [x] Steps in
[CONTRIBUTING.md](https://github.com/JoshuaKGoldberg/create-typescript-app/blob/main/.github/CONTRIBUTING.md)
were taken

## Overview

Uses `${{ payload.release.tag_name }}` this time, as suggested.

💖
  • Loading branch information
JoshuaKGoldberg authored Oct 17, 2024
1 parent 4c36a4c commit 96bf717
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/post-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
The release is available on:
* [GitHub releases](https://github.com/JoshuaKGoldberg/create-typescript-app/releases/tag/{release_tag})
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/create-typescript-app/v/{release_tag})
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/create-typescript-app/v/{${{ payload.release.tag_name }}})
Cheers! 📦🚀
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ describe("createWorkflows", () => {
The release is available on:
* [GitHub releases](https://github.com/StubOwner/stub-repository/releases/tag/{release_tag})
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/stub-repository/v/{release_tag})
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/stub-repository/v/{\${{ payload.release.tag_name }}})
Cheers! 📦🚀
Expand Down
2 changes: 1 addition & 1 deletion src/steps/writing/creation/dotGitHub/createWorkflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ export function createWorkflows(options: Options) {
The release is available on:
* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/{release_tag})
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/{\${{ payload.release.tag_name }}})
Cheers! 📦🚀
`,
Expand Down

0 comments on commit 96bf717

Please sign in to comment.