Compare commits

..

No commits in common. "9936de05865f1609d5e0d4df2652994c00d1e1e3" and "52a9fd1da0f214f78b6435cd0e004db8987be8ba" have entirely different histories.

View file

@ -73,31 +73,9 @@ jobs:
echo "version_changed=false" >> "$GITHUB_OUTPUT"
fi
mirror:
runs-on: docker
needs: [build-and-test, check-version]
container:
image: node:20-alpine
steps:
- name: Instalando dependencias
run: |
apk add git
- name: Checkout código
uses: actions/checkout@v4
with:
fetch-depth: 0 # ✅ clone completo
- name: Push para o repositório espelho
run: |
git remote add bitbucket https://leandro_costa:${BITBUCKET_TOKEN}@bitbucket.org/leandro_costa/lhmask.git
git push --force bitbucket HEAD
env:
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}
publish-staging:
runs-on: docker
needs: [mirror]
needs: [build-and-test, check-version]
container:
image: node:20-alpine
if: needs.check-version.outputs.version_changed == 'true' && (github.ref == 'refs/heads/development' || startsWith(github.ref, 'refs/heads/release-no-verify/'))
@ -117,7 +95,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-production:
runs-on: docker
needs: [mirror]
needs: [build-and-test, check-version]
container:
image: node:20-alpine
if: needs.check-version.outputs.version_changed == 'true' && github.ref == 'refs/heads/master'
@ -137,10 +115,23 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
finish:
mirror:
runs-on: docker
container:
image: node:20-alpine
steps:
- name: Finish task
run: echo Done
- name: Instalando dependencias
run: |
apk add git
- name: Checkout código
uses: actions/checkout@v4
with:
fetch-depth: 0 # ✅ clone completo
- name: Push para o repositório espelho
run: |
git remote add bitbucket https://leandro_costa:${BITBUCKET_TOKEN}@bitbucket.org/leandro_costa/lhmask.git
git push --force bitbucket HEAD
env:
BITBUCKET_TOKEN: ${{ secrets.BITBUCKET_TOKEN }}