Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArtifactoryNpm@2 is your task? #209

Closed
baeron opened this issue Oct 9, 2020 · 5 comments
Closed

ArtifactoryNpm@2 is your task? #209

baeron opened this issue Oct 9, 2020 · 5 comments
Labels
question Further information is requested

Comments

@baeron
Copy link

baeron commented Oct 9, 2020

Hi
I find in my code the next code
- task: ArtifactoryNpm@2 inputs: command: 'pack and publish' artifactoryService: 'XYZ' targetRepo: 'XYZ' displayName: 'Publish library'
It is work, but I can't find a description for this task on google
Is your API keyword? If yes, please provide a full description for this task (inputs, custom command).
Thanks.

@baeron baeron added the question Further information is requested label Oct 9, 2020
@eyalbe4
Copy link
Contributor

eyalbe4 commented Oct 10, 2020

@baeron,
Did you come across the Artifactory Azure DevOps Extention documentation?
We would also appreciate any feedback you can provide for it. If you think that we should modify the documentation format or add anything to it, please let us know.
Thanks

@baeron
Copy link
Author

baeron commented Oct 12, 2020

@eyalbe4
I have several Angular libraries that need to be built, packaged, and published on JFROG.
Could you please provide a list of all possible parameters for the task in YAML file how is it implemented in microsoft Azure DevOps documentation
- task: Npm@1
inputs:
command: publish
publishRegistry: useFeed
publishFeed: projectName/feedName
# other params

It would help a lot.
Thanks.

P.S. Can I call my scripts from your command
for example command: 'run mypack and run mypublish' from my package.json?
If so, how to do it correctly, because so far my attempts have not been crowned with success.

@eyalbe4
Copy link
Contributor

eyalbe4 commented Oct 12, 2020

@baeron,
I think that easiest way to create this YAML, is by using the tasks UI available in Azure DevOps.
Look for the Artifactory NPM task in the list of available tasks, fill out the fields in the UI, and generate the YAML.
Please let me know if you see an issue with this.

@baeron
Copy link
Author

baeron commented Oct 13, 2020

@eyalbe4
I work on a large project and I have no way to add your GUI functionality to Azure DevOps.
Can I link to the .tgz file in

  • task: ArtifactoryNpm @ 2
    inputs:
    command: 'publish {[tarball | folder]}' ???

@baeron
Copy link
Author

baeron commented Oct 22, 2020

Full description is here

@baeron baeron closed this as completed Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants