Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

npm publish pipe ignores bundle file

Sarranya Ramesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 6, 2020

I executing the following script to publish a package to registry ,Publish script didn't include the main bundle of my package on publishing. Can anyone help me to figure out what would be the reason ?

 

bitbucket-pipeline.yml

  branches:

    master:

      - step:

          caches:

            - node

          script

            - npm install

            - npm run build

      - step:

          namePublish

          deploymentproduction

          script:

            - pipeatlassian/npm-publish:0.2.0

              variables:

                NPM_REGISTRY_URL$NPM_URL

                NPM_TOKEN$NPM_TOKEN

                DEBUG'true'

 

 

Log:

npm publish .

npm notice

npm notice package: package name@version

npm notice === Tarball Contents ===

npm notice 1.4kB package.json           

npm notice 855B  bitbucket-pipelines.yml

npm notice 72B   CHANGELOG.md           

npm notice 1.1kB LICENSE              

------------------------missing bundle file ----------------------------------------- 

npm notice 835B  README.md              

npm notice === Tarball Details ===

npm notice name:          package name        

npm notice version:       1.0.1                                   

npm notice package size:  2.2 kB                                  

npm notice unpacked size: 4.2 kB                                  

npm notice shasum:        69def67f84fceced0e9c60fe377aa796d60e1037

npm notice integrity:     sha512-PT40MOj8rk6L+[...]jn/7bnwmFt0IA==

npm notice total files:   5                                       

npm notice

+ packagename@version

1 answer

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 7, 2020

Hi @Sarranya Ramesh ,

thank you for your question!

Check is your package.json file in the current directory or provide custom FOLDER param.

More details you can find here npm-publish pipe.

Cheers,
Alex

 

 

Sarranya Ramesh
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 8, 2020

Thanks Alex , will try out !!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events