Skip to content

Commit

Permalink
Publish to NPMjs instead GitHub packages
Browse files Browse the repository at this point in the history
  • Loading branch information
georg-schwarz committed Nov 13, 2020
1 parent a7bb3e6 commit 6dfd939
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 17 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/basics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,20 @@ jobs:
- uses: actions/checkout@v2
- name: Setup README and LICENSE files
run: cp README.md ${{ env.workdir }}/ && cp LICENSE ${{ env.workdir }}/
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://npm.pkg.github.com'
- run: npm install
working-directory: ${{ env.workdir }}
- run: npm run lint
working-directory: ${{ env.workdir }}
- run: npm run build
working-directory: ${{ env.workdir }}
- run: npm publish --access public
# Note: Currently only publishing to NPM since GitHub does not allow unauthenticated access to public packages!
- name: Setup node for NPMjs Packages
uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
- name: Publish to NPMjs Packages
run: npm publish --access public
working-directory: ${{ env.workdir }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
14 changes: 4 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,16 @@ The main repository can be found here: [JValue Open Data Service](https://github


## How to use
* add a `.npmrc` file with the following content to access our package registry
```
@jvalue:registry=https://npm.pkg.github.com
```
* add the packages to your `package.json` as usual

Add the packages to your `package.json` as usual or use `npm install --save <package-name>`


## Packages

| **Name** | **Package Name** | **Current Version** | **Description** |
|---|---|---|---|
| Basics | `@jvalue/node-dry-basics` | `0.0.1` | *all basic functionality that need no dependencies* |


## Contact us
| Basics | `@jvalue/node-dry-basics` | `0.0.2` | *all basic functionality that need no dependencies* |

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.

## License

Expand Down
2 changes: 1 addition & 1 deletion basics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"typescript": "^4.0.5"
},
"publishConfig": {
"registry":"https://npm.pkg.github.com"
"registry":"https://registry.npmjs.org"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 6dfd939

Please sign in to comment.