diff --git a/bitbucket-pipelines.yml b/bitbucket-pipelines.yml index 6116a0e..5ea3db9 100644 --- a/bitbucket-pipelines.yml +++ b/bitbucket-pipelines.yml @@ -8,8 +8,6 @@ definitions: script: - yarn install - yarn build - - mkdir dist/src - - cp package.json dist/ artifacts: - dist pipelines: @@ -21,9 +19,12 @@ pipelines: - step: name: Prepare Package script: + - cp package.json dist/ - sed -i s/$BITBUCKET_REPO_SLUG/$BITBUCKET_REPO_SLUG-dev/ dist/package.json + - npm version patch -m "[skip CI] Version %s" + - git push artifacts: - - dist/** + - dist - step: name: Publish deployment: staging @@ -34,6 +35,12 @@ pipelines: FOLDER: dist master: - step: *build-and-test + - step: + name: Prepare Package + script: + - cp package.json dist/ + artifacts: + - dist - step: name: Publish deployment: production