Skip to content

Commit 335ce4d

Browse files
committed
rename href-js to href
1 parent 9d3fed1 commit 335ce4d

File tree

4 files changed

+28
-74
lines changed

4 files changed

+28
-74
lines changed
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,21 @@ jobs:
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}}

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
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

1818
Usage:
1919

2020
```js
21-
import Href from "href-js";
21+
import Href from "@lonr/href";
2222
const href = new Href("path/to/file");
2323
```
2424

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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",
@@ -18,9 +18,9 @@
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",

webpack.config.js

Lines changed: 0 additions & 61 deletions
This file was deleted.

0 commit comments

Comments
 (0)