Skip to content

Commit 6dfd939

Browse files
committed
Publish to NPMjs instead GitHub packages
1 parent a7bb3e6 commit 6dfd939

3 files changed

Lines changed: 14 additions & 17 deletions

File tree

.github/workflows/basics.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,20 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- name: Setup README and LICENSE files
1515
run: cp README.md ${{ env.workdir }}/ && cp LICENSE ${{ env.workdir }}/
16-
- uses: actions/setup-node@v1
17-
with:
18-
node-version: '14.x'
19-
registry-url: 'https://npm.pkg.github.com'
2016
- run: npm install
2117
working-directory: ${{ env.workdir }}
2218
- run: npm run lint
2319
working-directory: ${{ env.workdir }}
2420
- run: npm run build
2521
working-directory: ${{ env.workdir }}
26-
- run: npm publish --access public
22+
# Note: Currently only publishing to NPM since GitHub does not allow unauthenticated access to public packages!
23+
- name: Setup node for NPMjs Packages
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: '14.x'
27+
registry-url: 'https://registry.npmjs.org'
28+
- name: Publish to NPMjs Packages
29+
run: npm publish --access public
2730
working-directory: ${{ env.workdir }}
2831
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,16 @@ The main repository can be found here: [JValue Open Data Service](https://github
66

77

88
## How to use
9-
* add a `.npmrc` file with the following content to access our package registry
10-
```
11-
@jvalue:registry=https://npm.pkg.github.com
12-
```
13-
* add the packages to your `package.json` as usual
9+
10+
Add the packages to your `package.json` as usual or use `npm install --save <package-name>`
11+
1412

1513
## Packages
1614

1715
| **Name** | **Package Name** | **Current Version** | **Description** |
1816
|---|---|---|---|
19-
| Basics | `@jvalue/node-dry-basics` | `0.0.1` | *all basic functionality that need no dependencies* |
20-
21-
22-
## Contact us
17+
| Basics | `@jvalue/node-dry-basics` | `0.0.2` | *all basic functionality that need no dependencies* |
2318

24-
If you have any questions or would like to contact us, you can easily reach us via gitter channel. Issues can be reported via GitHub.
2519

2620
## License
2721

basics/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"typescript": "^4.0.5"
2727
},
2828
"publishConfig": {
29-
"registry":"https://npm.pkg.github.com"
29+
"registry":"https://registry.npmjs.org"
3030
},
3131
"repository": {
3232
"type": "git",

0 commit comments

Comments
 (0)