Skip to content

Commit 96bf717

Browse files
fix: use payload.release.tag_name for npm package release (#1665)
## 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. 💖
1 parent 4c36a4c commit 96bf717

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/post-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
The release is available on:
1515
1616
* [GitHub releases](https://github.com/JoshuaKGoldberg/create-typescript-app/releases/tag/{release_tag})
17-
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/create-typescript-app/v/{release_tag})
17+
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/create-typescript-app/v/{${{ payload.release.tag_name }}})
1818
1919
Cheers! 📦🚀
2020

src/steps/writing/creation/dotGitHub/createWorkflows.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ describe("createWorkflows", () => {
206206
The release is available on:
207207
208208
* [GitHub releases](https://github.com/StubOwner/stub-repository/releases/tag/{release_tag})
209-
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/stub-repository/v/{release_tag})
209+
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/stub-repository/v/{\${{ payload.release.tag_name }}})
210210
211211
Cheers! 📦🚀
212212

src/steps/writing/creation/dotGitHub/createWorkflows.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ export function createWorkflows(options: Options) {
164164
The release is available on:
165165
166166
* [GitHub releases](https://github.com/${options.owner}/${options.repository}/releases/tag/{release_tag})
167-
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/{release_tag})
167+
* [npm package (@latest dist-tag)](https://www.npmjs.com/package/${options.repository}/v/{\${{ payload.release.tag_name }}})
168168
169169
Cheers! 📦🚀
170170
`,

0 commit comments

Comments
 (0)