The official node image for Bitbucket Pipelines plus zip cmd to produce zipped artifact.
Simply use this image in your 'bitbucket-pipelines.yml' file:
image: ronit/node-zip
pipelines:
default:
- step:
script:
- yarn test
- yarn run build
- cd build
- zip -r ../build.zip *
- cd ..
artifact:
- build.zip