Merge pull request 'development' (#6) from development into master
All checks were successful
CI Pipeline / finish (push) Successful in 2s
CI Pipeline / check-version (push) Successful in 17s
CI Pipeline / build-and-test (push) Successful in 1m4s
CI Pipeline / mirror (push) Successful in 14s
CI Pipeline / publish-staging (push) Has been skipped
CI Pipeline / publish-production (push) Has been skipped

Reviewed-on: leandro/lhmask#6
This commit is contained in:
leandro 2025-05-28 18:15:07 +00:00
commit 9936de0586

View file

@ -73,9 +73,31 @@ jobs:
echo "version_changed=false" >> "$GITHUB_OUTPUT" echo "version_changed=false" >> "$GITHUB_OUTPUT"
fi fi
publish-staging: mirror:
runs-on: docker runs-on: docker
needs: [build-and-test, check-version] 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]
container: container:
image: node:20-alpine 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/')) if: needs.check-version.outputs.version_changed == 'true' && (github.ref == 'refs/heads/development' || startsWith(github.ref, 'refs/heads/release-no-verify/'))
@ -95,7 +117,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
publish-production: publish-production:
runs-on: docker runs-on: docker
needs: [build-and-test, check-version] needs: [mirror]
container: container:
image: node:20-alpine image: node:20-alpine
if: needs.check-version.outputs.version_changed == 'true' && github.ref == 'refs/heads/master' if: needs.check-version.outputs.version_changed == 'true' && github.ref == 'refs/heads/master'
@ -115,23 +137,10 @@ jobs:
env: env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
mirror: finish:
runs-on: docker runs-on: docker
container: container:
image: node:20-alpine image: node:20-alpine
steps: steps:
- name: Instalando dependencias - name: Finish task
run: | run: echo Done
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 }}