File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -23,11 +23,15 @@ CodeSandbox 上でコードを編集し、GitHub Actions から npm レジスト
2323
2424### ライブラリー部分の変更
2525
26- ` src/count.ts ` を削除し、ライブラリのコードを記述。エクスポートしたい項目を ` src/index.ts ` へ記述。
26+ ` src/count.ts ` ` src/count.test.ts ` ` test/* ` を削除し、ライブラリのコードを記述。エクスポートしたい項目を ` src/index.ts ` へ記述。
2727
2828### npm publish
2929
30- GitHub で Release を Publish すると ` npm pbulish ` される。
30+ 以下の設定後に GitHub で Release を Publish すると ` npm pbulish ` される。
31+
32+ 1 . GitHub にリポジトリを作成
33+ 1 . リポジトリの "Settings / Environment" から ` npm_pkg ` を作成
34+ 1 . Environment secrets に ` NPM_TOKEN ` を追加(内容は npm レジストリの Access Token)
3135
3236なお、` prepublishOnly ` 等は定義されていないので、手動で ` npm publish ` を実行してもビルドはされないので注意。
3337
@@ -64,3 +68,4 @@ GitHub で Release を Publish すると `npm pbulish` される。
6468MIT License
6569
6670Copyright (c) 2021 hankei6km
71+
Original file line number Diff line number Diff line change 88 "declaration" : true ,
99 "pretty" : true ,
1010 "newLine" : " lf" ,
11- "outDir" : " dist"
11+ "outDir" : " dist" ,
12+ "esModuleInterop" : true
1213 },
1314 "exclude" : [
1415 " node_modules" ,
1819 " src/**/*.ts" ,
1920 " src/**/*.tsx"
2021 ]
21- }
22+ }
You can’t perform that action at this time.
0 commit comments