File tree Expand file tree Collapse file tree 5 files changed +59
-0
lines changed Expand file tree Collapse file tree 5 files changed +59
-0
lines changed Original file line number Diff line number Diff line change @@ -145,3 +145,15 @@ jobs:
145
145
uses : JS-DevTools/npm-publish@v1
146
146
with :
147
147
token : ${{ secrets.NPM_TOKEN }}
148
+
149
+ - name : Prepare the non-scoped packaged
150
+ run : |
151
+ cp LICENSE *.md dist
152
+ VERSION=$(node -e "console.log(require('./package.json').version)")
153
+ sed -i "s/X.X.X/${VERSION}/g" dist/package.json
154
+
155
+ - name : Publish the non-scoped package to NPM
156
+ uses : JS-DevTools/npm-publish@v1
157
+ with :
158
+ token : ${{ secrets.NPM_TOKEN }}
159
+ package : dist/package.json
Original file line number Diff line number Diff line change
1
+ import ono from "@jsdevtools/ono" ;
2
+ export * from "@jsdevtools/ono" ;
3
+ export default ono ;
Original file line number Diff line number Diff line change
1
+ "use strict" ;
2
+ module . exports = require ( "@jsdevtools/ono" ) ;
Original file line number Diff line number Diff line change
1
+ import ono from "@jsdevtools/ono" ;
2
+ export * from "@jsdevtools/ono" ;
3
+ export default ono ;
Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " ono" ,
3
+ "version" : " X.X.X" ,
4
+ "description" : " Throw better errors." ,
5
+ "keywords" : [
6
+ " throw" ,
7
+ " error" ,
8
+ " errors" ,
9
+ " exception" ,
10
+ " printf" ,
11
+ " format" ,
12
+ " wrap" ,
13
+ " inner" ,
14
+ " original" ,
15
+ " stack" ,
16
+ " properties"
17
+ ],
18
+ "author" : {
19
+ "name" : " James Messinger" ,
20
+ "url" : " https://jamesmessinger.com"
21
+ },
22
+ "license" : " MIT" ,
23
+ "homepage" : " https://jstools.dev/ono" ,
24
+ "repository" : {
25
+ "type" : " git" ,
26
+ "url" : " https://github.com/JS-DevTools/ono.git"
27
+ },
28
+ "main" : " index.js" ,
29
+ "module" : " index.mjs" ,
30
+ "typings" : " index.d.ts" ,
31
+ "files" : [
32
+ " index.js" ,
33
+ " index.mjs" ,
34
+ " index.d.ts"
35
+ ],
36
+ "dependencies" : {
37
+ "@jsdevtools/ono" : " X.X.X"
38
+ }
39
+ }
You can’t perform that action at this time.
0 commit comments