Skip to content

Commit 8a44936

Browse files
Merge pull request #16 from scheduleonce/ultragroot/ONCEHUB-52065
https://scheduleonce.atlassian.net/browse/ONCEHUB-52065 - Automate Pu…
2 parents 835c566 + f50b54f commit 8a44936

File tree

4 files changed

+58
-7
lines changed

4 files changed

+58
-7
lines changed

OWNERS

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
approvers:
2-
- amitbishtOH
2+
- developers
33
reviewers:
4-
- amitbishtOH
4+
- developers

OWNERS_ALIASES

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,31 @@
11
aliases:
2-
- amitbishtOH
3-
best-approvers:
4-
- amitbishtOH
5-
best-reviewers:
6-
- amitbishtOH
2+
developers:
3+
- so-nagender
4+
- so-ravindra
5+
- somanwal
6+
- avik-so
7+
- mderazon
8+
- so-abahadur
9+
- amanpreetSO
10+
- AmitPandeyScheduleonce
11+
- ashishsatiSO
12+
- SO-ashusrivastava
13+
- bharatsinghoh
14+
- giladgoraly
15+
- sohimanshu
16+
- so-kaushal
17+
- nalingarg
18+
- so-sdhawan
19+
- so-shekhar
20+
- ShivamKe
21+
- umeshchaudhary
22+
- ushankar208
23+
- vaibhavso
24+
- vinaykumar01
25+
- yoramwso
26+
- piyush-so
27+
- sumitsharma22
28+
- yuktiarora
29+
- aakash-ravi
30+
- rameshwarverma
31+
- so-hvats

deploy.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
set -e
2+
3+
node package-deploy/npm-login.js $(cat "/etc/npm-cred/NPM_AUTH_TOKEN")
4+
5+
npm i
6+
npm run package
7+
8+
filename="$(npm pack --dry-run | tail -n 1)"
9+
npm publish $filename --registry=https://registry.npmjs.org/
10+
11+
echo "$filename package pushed to myGet successfully"

package-deploy/npm-login.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
let fs = require('fs');
2+
let path = require('path');
3+
4+
let token = '';
5+
6+
process.argv.forEach(function(val, index, array) {
7+
if (index == 2) token = val;
8+
});
9+
10+
let registry = 'https://registry.npmjs.org/';
11+
12+
var homePath = process.env.HOME ? process.env.HOME : process.env.USERPROFILE;
13+
var configPath = configPath ? configPath : path.join(homePath, '.npmrc');
14+
15+
fs.writeFile(configPath, `${registry}:_authToken=${token}` + '\n', () => {});

0 commit comments

Comments
 (0)