Compare commits
No commits in common. "9936de05865f1609d5e0d4df2652994c00d1e1e3" and "52a9fd1da0f214f78b6435cd0e004db8987be8ba" have entirely different histories.
9936de0586
...
52a9fd1da0
1 changed files with 18 additions and 27 deletions
|
@ -73,31 +73,9 @@ jobs:
|
||||||
echo "version_changed=false" >> "$GITHUB_OUTPUT"
|
echo "version_changed=false" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
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:
|
publish-staging:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
needs: [mirror]
|
needs: [build-and-test, check-version]
|
||||||
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/'))
|
||||||
|
@ -117,7 +95,7 @@ jobs:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
publish-production:
|
publish-production:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
needs: [mirror]
|
needs: [build-and-test, check-version]
|
||||||
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'
|
||||||
|
@ -137,10 +115,23 @@ jobs:
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
finish:
|
mirror:
|
||||||
runs-on: docker
|
runs-on: docker
|
||||||
container:
|
container:
|
||||||
image: node:20-alpine
|
image: node:20-alpine
|
||||||
steps:
|
steps:
|
||||||
- name: Finish task
|
- name: Instalando dependencias
|
||||||
run: echo Done
|
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 }}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue