now using npm global config
This commit is contained in:
parent
73de81d912
commit
86d29325cb
@ -21,6 +21,7 @@ testSTABLE:
|
||||
release:
|
||||
stage: release
|
||||
script:
|
||||
- npm install npmci -g
|
||||
- npmci publish
|
||||
only:
|
||||
- tags
|
||||
|
4
dist/npmci.publish.js
vendored
4
dist/npmci.publish.js
vendored
@ -8,10 +8,10 @@ var npmrcFileString = npmrcPrefix + npmToken;
|
||||
exports.publish = function () {
|
||||
var done = plugins.q.defer();
|
||||
plugins.beautylog.ok("Tests passed, now publishing to npm!");
|
||||
plugins.smartfile.memory.toFsSync(npmrcFileString, { fileName: ".npmrc", filePath: "/" });
|
||||
plugins.smartfile.memory.toFsSync(npmrcFileString, { fileName: "npmrc", filePath: "/etc/" });
|
||||
npmci_bash_1.bash("npm publish");
|
||||
plugins.beautylog.ok("Done!");
|
||||
return done.promise;
|
||||
};
|
||||
|
||||
//# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIm5wbWNpLnB1Ymxpc2gudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IjtBQUFBLFFBQU8sZ0JBQWdCLENBQUMsQ0FBQTtBQUN4QixJQUFZLE9BQU8sV0FBTSxpQkFBaUIsQ0FBQyxDQUFBO0FBQzNDLDJCQUFtQixjQUFjLENBQUMsQ0FBQTtBQUVsQyxJQUFJLFdBQVcsR0FBVSxtQ0FBbUMsQ0FBQztBQUM3RCxJQUFJLFFBQVEsR0FBVSxPQUFPLENBQUMsR0FBRyxDQUFDLFVBQVUsQ0FBQztBQUM3QyxJQUFJLGVBQWUsR0FBRyxXQUFXLEdBQUcsUUFBUSxDQUFDO0FBR2xDLGVBQU8sR0FBRztJQUNqQixJQUFJLElBQUksR0FBRyxPQUFPLENBQUMsQ0FBQyxDQUFDLEtBQUssRUFBRSxDQUFDO0lBQzdCLE9BQU8sQ0FBQyxTQUFTLENBQUMsRUFBRSxDQUFDLHNDQUFzQyxDQUFDLENBQUM7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0FBQztBQUN4QixDQUFDLENBQUMiLCJmaWxlIjoibnBtY2kucHVibGlzaC5qcyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCBcInR5cGluZ3MtZ2xvYmFsXCI7XHJcbmltcG9ydCAqIGFzIHBsdWdpbnMgZnJvbSBcIi4vbnBtY2kucGx1Z2luc1wiO1xyXG5pbXBvcnQge2Jhc2h9IGZyb20gXCIuL25wbWNpLmJhc2hcIjtcclxuXHJcbmxldCBucG1yY1ByZWZpeDpzdHJpbmcgPSBcIi8vcmVnaXN0cnkubnBtanMub3JnLzpfYXV0aFRva2VuPVwiO1xyXG5sZXQgbnBtVG9rZW46c3RyaW5nID0gcHJvY2Vzcy5lbnYuTlBNQ0lUT0tFTjtcclxubGV0IG5wbXJjRmlsZVN0cmluZyA9IG5wbXJjUHJlZml4ICsgbnBtVG9rZW47XHJcblxyXG5cclxuZXhwb3J0IGxldCBwdWJsaXNoID0gKCkgPT4ge1xyXG4gICAgbGV0IGRvbmUgPSBwbHVnaW5zLnEuZGVmZXIoKTtcclxuICAgIHBsdWdpbnMuYmVhdXR5bG9nLm9rKFwiVGVzdHMgcGFzc2VkLCBub3cgcHVibGlzaGluZyB0byBucG0hXCIpO1xyXG4gICAgcGx1Z2lucy5zbWFydGZpbGUubWVtb3J5LnRvRnNTeW5jKG5wbXJjRmlsZVN0cmluZyx7ZmlsZU5hbWU6XCJucG1yY1wiLGZpbGVQYXRoOlwiL2V0Yy9cIn0pO1xyXG4gICAgYmFzaChcIm5wbSBwdWJsaXNoXCIpO1xyXG4gICAgcGx1Z2lucy5iZWF1dHlsb2cub2soXCJEb25lIVwiKVxyXG4gICAgcmV0dXJuIGRvbmUucHJvbWlzZTtcclxufTsiXX0=
|
||||
|
@ -10,7 +10,7 @@ let npmrcFileString = npmrcPrefix + npmToken;
|
||||
export let publish = () => {
|
||||
let done = plugins.q.defer();
|
||||
plugins.beautylog.ok("Tests passed, now publishing to npm!");
|
||||
plugins.smartfile.memory.toFsSync(npmrcFileString,{fileName:".npmrc",filePath:"/"});
|
||||
plugins.smartfile.memory.toFsSync(npmrcFileString,{fileName:"npmrc",filePath:"/etc/"});
|
||||
bash("npm publish");
|
||||
plugins.beautylog.ok("Done!")
|
||||
return done.promise;
|
||||
|
Loading…
Reference in New Issue
Block a user