File tree Expand file tree Collapse file tree 4 files changed +28
-74
lines changed
Expand file tree Collapse file tree 4 files changed +28
-74
lines changed Original file line number Diff line number Diff line change 2929 registry-url : https://registry.npmjs.org/
3030 - run : yarn
3131 - run : yarn build
32- - run : yarn publish
32+ - run : yarn publish --access public
3333 env :
3434 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
35+
36+ publish-gpr :
37+ needs : test
38+ runs-on : ubuntu-latest
39+ steps :
40+ - uses : actions/checkout@v2
41+ - uses : actions/setup-node@v2
42+ with :
43+ node-version : " 14.x"
44+ registry-url : https://npm.pkg.github.com/
45+ - run : yarn
46+ - run : yarn build
47+ - run : yarn publish --access public
48+ env :
49+ NODE_AUTH_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change 1- # href-js
1+ # href
22
3- > ** Beta now, use it at your own risk**
3+ > ** Unstable now, use it at your own risk**
44
5- href-js is a lib for working with incomplete URLs (without a base) in the builtin [ URL] ( https://developer.mozilla.org/en-US/docs/Web/API/URL ) 's way
5+ href is a lib for working with incomplete URLs (without a base) in the builtin [ URL] ( https://developer.mozilla.org/en-US/docs/Web/API/URL ) 's way
66
77## Usage
88
9- Install href-js :
9+ Install href:
1010
1111``` bash
1212# npm
13- npm install href-js
13+ npm install @lonr/ href
1414# yarn
15- yarn add href-js
15+ yarn add @lonr/ href
1616```
1717
1818Usage:
1919
2020``` js
21- import Href from " href-js " ;
21+ import Href from " @lonr/ href" ;
2222const href = new Href (" path/to/file" );
2323```
2424
Original file line number Diff line number Diff line change 11{
2- "name" : " href-js " ,
3- "version" : " 1.0.0 " ,
4- "description" : " href-js is a lib for working with incomplete URLs (without a base) in the builtin URL's way" ,
2+ "name" : " @lonr/ href" ,
3+ "version" : " 1.0.1 " ,
4+ "description" : " href is a lib for working with incomplete URLs (without a base) in the builtin URL's way" ,
55 "type" : " commonjs" ,
66 "main" : " ./dist/index.js" ,
77 "module" : " ./dist/index.mjs" ,
1818 },
1919 "repository" : {
2020 "type" : " git" ,
21- "url" : " https://github.com/lonr/href-js .git"
21+ "url" : " https://github.com/lonr/href.git"
2222 },
23- "homepage" : " https://github.com/lonr/href-js " ,
23+ "homepage" : " https://github.com/lonr/href" ,
2424 "license" : " MIT" ,
2525 "scripts" : {
2626 "prebuild" : " rimraf dist" ,
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments