Skip to content

Commit 80ea707

Browse files
committed
Do not publish to npm
1 parent d49de11 commit 80ea707

File tree

3 files changed

+10
-17
lines changed

3 files changed

+10
-17
lines changed

.github/workflows/publish.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,6 @@ jobs:
3232
fail_on_unmatched_files: true
3333
prerelease: ${{ contains(github.ref_name, '-') }}
3434
files: '*.tgz'
35-
npm:
36-
name: npm
37-
uses: ./.github/workflows/_publish.yml
38-
needs: build
39-
with:
40-
artifact_name: ${{ needs.build.outputs.artifact_name }}
41-
registry_host: https://registry.npmjs.org
42-
secrets:
43-
registry_token: ${{ secrets.NPM_TOKEN }}
4435
github:
4536
name: GitHub Packages
4637
uses: ./.github/workflows/_publish.yml

README.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# TypeScript Module Package Skeleton
22

3-
[![npm](https://img.shields.io/npm/v/@seamapi/makenew-tsmodule.svg)](https://www.npmjs.com/package/@seamapi/makenew-tsmodule)
43
[![GitHub Actions](https://github.com/seamapi/makenew-tsmodule/actions/workflows/check.yml/badge.svg)](https://github.com/seamapi/makenew-tsmodule/actions/workflows/check.yml)
54

65
Package skeleton for a TypeScript module.
@@ -22,7 +21,6 @@ Bootstrap a new TypeScript module in five minutes or less.
2221
- Continuous testing and package publishing with [GitHub Actions].
2322
- [Keep a CHANGELOG].
2423
- Consistent coding with [EditorConfig].
25-
- Badges from [Shields.io].
2624

2725
[AVA]: https://github.com/avajs/ava
2826
[ECMAScript module]: https://nodejs.org/api/esm.html
@@ -34,7 +32,6 @@ Bootstrap a new TypeScript module in five minutes or less.
3432
[Keep a CHANGELOG]: https://keepachangelog.com/
3533
[Node.js]: https://nodejs.org/
3634
[Prettier]: https://prettier.io/
37-
[Shields.io]: https://shields.io/
3835
[TypeScript]: https://www.typescriptlang.org/
3936
[c8]: https://github.com/bcoe/c8
4037
[landlubber]: https://github.com/razor-x/landlubber
@@ -104,7 +101,14 @@ and summarized under [Releases].
104101

105102
## Installation
106103

107-
Add this as a dependency to your project using [npm] with
104+
Add this as a dependency to your project using [npm]
105+
by adding the line below to your project's `.npmrc`,
106+
107+
```
108+
@seamapi:registry=https://npm.pkg.github.com
109+
```
110+
111+
and installing the package with
108112

109113
```
110114
$ npm install @seamapi/makenew-tsmodule
@@ -192,8 +196,6 @@ _GitHub Actions should already be configured: this section is for reference only
192196

193197
The following repository secrets must be set on [GitHub Actions]:
194198

195-
- `NPM_TOKEN`: npm token for installing and publishing packages.
196-
197199
These must be set manually.
198200

199201
### Secrets for Optional GitHub Actions

makenew.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,8 @@ makenew () {
5454
read -p '> Short package description (Foos and bars.): ' mk_description
5555
read -p '> GitHub repository name (my-repo): ' mk_repo
5656

57-
sed_delete README.md '10,103d'
58-
sed_insert README.md '10i' 'TODO'
57+
sed_delete README.md '9,101d'
58+
sed_insert README.md '9i' 'TODO'
5959

6060
find_replace "s/^ \"version\": \".*\"/ \"version\": \"0.0.0\"/g"
6161
find_replace "s/TypeScript Module Package Skeleton/${mk_title}/g"

0 commit comments

Comments
 (0)