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:
name: Publish
deployment: production
script:
- pipe: atlassian/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
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
Thanks Alex , will try out !!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.