TFS2018: Use npm publish task to release a built npm packageBuild vNext missing tasksWrong --out in TFS 2015 dnu publishTFS Release Management Artifacts Variable not availableRelease Failure from TFS CIObtain the artifact directory path as a relative path for the Release processTFS Release Artifacts - How to Link Version Control Artifacts?NuGet Push Results in 401 Unauthorized Error within TFS Build and on TFS Server ItselfTFS2018 tries to publish my DatabaseHow to publish a prod build of our VSTS extensions package to my dev VSTS (not prod VSTS), so I can validate it before publishing to prod VSTS?TFS 2018 - Building pre-release packages
If a character has darkvision, can they see through an area of nonmagical darkness filled with lightly obscuring gas?
Did arcade monitors have same pixel aspect ratio as TV sets?
The screen of my macbook suddenly broken down how can I do to recover
Is it possible to put a rectangle as background in the author section?
Longest common substring in linear time
Are the IPv6 address space and IPv4 address space completely disjoint?
What does chmod -u do?
Is there any references on the tensor product of presentable (1-)categories?
How do I find all files that end with a dot
Not using 's' for he/she/it
On a tidally locked planet, would time be quantized?
Loading commands from file
Multiplicative persistence
What is this cable/device?
What is the evidence for the "tyranny of the majority problem" in a direct democracy context?
Why Shazam when there is already Superman?
Is it safe to use olive oil to clean the ear wax?
How to bake one texture for one mesh with multiple textures blender 2.8
Start making guitar arrangements
Lowest total scrabble score
Should I outline or discovery write my stories?
Why did the Mercure fail?
How should I respond when I lied about my education and the company finds out through background check?
Which one is correct as adjective “protruding” or “protruded”?
TFS2018: Use npm publish task to release a built npm package
Build vNext missing tasksWrong --out in TFS 2015 dnu publishTFS Release Management Artifacts Variable not availableRelease Failure from TFS CIObtain the artifact directory path as a relative path for the Release processTFS Release Artifacts - How to Link Version Control Artifacts?NuGet Push Results in 401 Unauthorized Error within TFS Build and on TFS Server ItselfTFS2018 tries to publish my DatabaseHow to publish a prod build of our VSTS extensions package to my dev VSTS (not prod VSTS), so I can validate it before publishing to prod VSTS?TFS 2018 - Building pre-release packages
I have a build that creates an npm package (tgz). I would like to add a release pipline to publish this package to our npm server.
The package is available from the artifacts and I can download it in the release pipline. But to publish it with the NPM Task I need its exact name, which has the version number in it.
npm publish mypackage-1.0.0.tgz
I cannot see any way to get this version number or the full filename of the artifact in the release pipline.
I could probably use a powershell script to do this, but then I am missing the NPM credentials that I configured in TFS.
Am I supposed to do this differntly? Am I missing something?
tfs tfs2018
add a comment |
I have a build that creates an npm package (tgz). I would like to add a release pipline to publish this package to our npm server.
The package is available from the artifacts and I can download it in the release pipline. But to publish it with the NPM Task I need its exact name, which has the version number in it.
npm publish mypackage-1.0.0.tgz
I cannot see any way to get this version number or the full filename of the artifact in the release pipline.
I could probably use a powershell script to do this, but then I am missing the NPM credentials that I configured in TFS.
Am I supposed to do this differntly? Am I missing something?
tfs tfs2018
why not use the powershell to find the file and set the filename as a new variable for the current release-process, then you could use the npm-publish task with the configured credentials
– D.J.
2 days ago
add a comment |
I have a build that creates an npm package (tgz). I would like to add a release pipline to publish this package to our npm server.
The package is available from the artifacts and I can download it in the release pipline. But to publish it with the NPM Task I need its exact name, which has the version number in it.
npm publish mypackage-1.0.0.tgz
I cannot see any way to get this version number or the full filename of the artifact in the release pipline.
I could probably use a powershell script to do this, but then I am missing the NPM credentials that I configured in TFS.
Am I supposed to do this differntly? Am I missing something?
tfs tfs2018
I have a build that creates an npm package (tgz). I would like to add a release pipline to publish this package to our npm server.
The package is available from the artifacts and I can download it in the release pipline. But to publish it with the NPM Task I need its exact name, which has the version number in it.
npm publish mypackage-1.0.0.tgz
I cannot see any way to get this version number or the full filename of the artifact in the release pipline.
I could probably use a powershell script to do this, but then I am missing the NPM credentials that I configured in TFS.
Am I supposed to do this differntly? Am I missing something?
tfs tfs2018
tfs tfs2018
asked 2 days ago
mjrmjr
286
286
why not use the powershell to find the file and set the filename as a new variable for the current release-process, then you could use the npm-publish task with the configured credentials
– D.J.
2 days ago
add a comment |
why not use the powershell to find the file and set the filename as a new variable for the current release-process, then you could use the npm-publish task with the configured credentials
– D.J.
2 days ago
why not use the powershell to find the file and set the filename as a new variable for the current release-process, then you could use the npm-publish task with the configured credentials
– D.J.
2 days ago
why not use the powershell to find the file and set the filename as a new variable for the current release-process, then you could use the npm-publish task with the configured credentials
– D.J.
2 days ago
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281439%2ftfs2018-use-npm-publish-task-to-release-a-built-npm-package%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55281439%2ftfs2018-use-npm-publish-task-to-release-a-built-npm-package%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
why not use the powershell to find the file and set the filename as a new variable for the current release-process, then you could use the npm-publish task with the configured credentials
– D.J.
2 days ago