From be8af1fd39ad9b37ab1a20e14fe0f214d655ec71 Mon Sep 17 00:00:00 2001 From: Leandro Costa Date: Fri, 27 Jan 2023 08:02:41 -0300 Subject: [PATCH] Preparando pacote antes de publicar --- bitbucket-pipelines.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) 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