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

Commit

Permalink
Package will be scoped
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Nov 24, 2019
1 parent 5b2f161 commit 5c1e3e4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,11 @@ jobs:
node-version: 12.x
registry-url: 'https://registry.npmjs.org/'
- name: Publish to NPM registry
run: npm publish
run: |
npm config set scope "@aw"
npm publish --access public
env:
CI: true
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

publish-gpr:
Expand All @@ -51,6 +54,6 @@ jobs:
- name: Publish to GitHub Package registry
run: |
npm config set scope "@aw"
npm publish
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
# Installation

```
npm install on-prem-meta
npm install @aw/on-prem-meta
```

or
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.2',
user_agent: 'nodeclient-on-prem-meta/1.0.3',
response_timeout: 10000 // 10 seconds
});

Expand Down
11 changes: 8 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"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.2",
"name": "@aw/on-prem-meta",
"version": "1.0.3",
"license": "MIT",
"homepage": "https://on-premises.com",
"main": "lib/on-prem-meta.js",
"private": false,
"repository": {
"type": "git",
"url": "https://github.com/on-prem/on-prem-meta-node.git"
"url": "git+https://github.com/on-prem/on-prem-meta-node.git"
},
"scripts": {
"build": "coffee --no-header -c -o lib src/on-prem-meta.coffee",
Expand Down Expand Up @@ -37,5 +37,10 @@
},
"engines": {
"node": ">=12"
},
"directories": {
"lib": "lib",
"src": "src",
"test": "test"
}
}
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.2'
user_agent: 'nodeclient-on-prem-meta/1.0.3'
response_timeout: 10000 # 10 seconds

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

0 comments on commit 5c1e3e4

Please sign in to comment.