Skip to content
This repository has been archived by the owner on Dec 24, 2022. It is now read-only.

Commit

Permalink
Fix package workflow and README, and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Nov 24, 2019
1 parent a1242ba commit 5b2f161
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 17 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://registry.npmjs.org/
registry-url: 'https://registry.npmjs.org/'
- name: Publish to NPM registry
run: |
npm ci
npm publish
run: npm publish
env:
CI: true
ON_PREM_META_HOST: test.local:8443
ON_PREM_META_APITOKEN: yourtoken
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
Expand All @@ -51,14 +46,11 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://npm.pkg.github.com/
registry-url: 'https://npm.pkg.github.com/'
scope: '@aw'
- name: Publish to GitHub Package registry
run: |
npm ci
npm config set scope "@aw"
npm publish
env:
CI: true
ON_PREM_META_HOST: test.local:8443
ON_PREM_META_APITOKEN: yourtoken
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ meta.buildRequest apiParams, (error, result) =>
Make a `POST` request with a file upload and query parameters

```coffee
postParams =
apiParams =
method: 'POST'
endpoint: 'settings/license'
files:
Expand Down Expand Up @@ -186,7 +186,7 @@ meta.buildRequest(apiParams, (error, result) => {
Make a `POST` request with a file upload and query parameters

```js
postParams = {
apiParams = {
method: 'POST',
endpoint: 'settings/license',
files: {
Expand Down
2 changes: 1 addition & 1 deletion lib/on-prem-meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
exports.options = options;

needle.defaults({
user_agent: 'nodeclient-on-prem-meta/1.0.1',
user_agent: 'nodeclient-on-prem-meta/1.0.2',
response_timeout: 10000 // 10 seconds
});

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"description": "Official On-Prem Meta REST API client and helper library",
"author": "Alexander Williams, Unscramble <license@unscramble.jp>",
"name": "on-prem-meta",
"version": "1.0.1",
"version": "1.0.2",
"license": "MIT",
"homepage": "https://on-premises.com",
"main": "lib/on-prem-meta.js",
Expand Down
2 changes: 1 addition & 1 deletion src/on-prem-meta.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ exports.settings = settings
exports.options = options

needle.defaults
user_agent: 'nodeclient-on-prem-meta/1.0.1'
user_agent: 'nodeclient-on-prem-meta/1.0.2'
response_timeout: 10000 # 10 seconds

exports.buildRequest = (params = {method: 'GET', endpoint: 'version'}, callback) ->
Expand Down

0 comments on commit 5b2f161

Please sign in to comment.