Skip to content

Commit bd27d6a

Browse files
committed
Add trusted publishing step to README
1 parent c66398a commit bd27d6a

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,15 @@ Bootstrap a new TypeScript module in five minutes or less.
5353

5454
### Bootstrapping a new project
5555

56-
1. [Trigger a makenew workflow from this repository][makenew workflow]. 🚀
56+
1. Enable [trusted publishing for this npm package][npm trusted publishing].
57+
2. [Trigger a makenew workflow from this repository][makenew workflow]. 🚀
5758
- Provide a value for each required input.
5859
- There are no defaults.
5960
- Example values are shown in parentheses.
60-
2. When the workflow completes, clone your new repo and start coding!
61+
3. When the workflow completes, clone your new repo and start coding!
6162

6263
[makenew workflow]: https://github.com/seamapi/makenew-tsmodule/actions/workflows/makenew.yml
64+
[npm trusted publishing]: https://docs.npmjs.com/trusted-publishers#supported-cicd-providers
6365

6466
### Updating from this skeleton
6567

@@ -179,7 +181,6 @@ _GitHub Actions should already be configured: this section is for reference only
179181

180182
The following repository secrets must be set on [GitHub Actions]:
181183

182-
- `NPM_TOKEN`: npm token for installing and publishing packages.
183184
- `GH_TOKEN`: A personal access token for the bot user with
184185
`packages:write` and `contents:write` permission.
185186
- `GIT_USER_NAME`: The GitHub bot user's real name.

makenew.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ makenew () {
5858
read -p '> Short package description (Foos and bars.): ' mk_description
5959
fi
6060

61-
sed_delete README.md '10,80d'
61+
sed_delete README.md '10,82d'
6262
sed_insert README.md '10i' 'TODO'
6363

6464
find_replace "s/^ \"version\": \".*\"/ \"version\": \"0.0.0\"/g"

0 commit comments

Comments
 (0)