development #6
1 changed files with 8 additions and 7 deletions
|
@ -73,9 +73,15 @@ jobs:
|
||||||
echo "version_changed=false" >> "$GITHUB_OUTPUT"
|
echo "version_changed=false" >> "$GITHUB_OUTPUT"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
mirror:
|
||||||
|
uses: leandro/devops/.forgejo/workflows/mirror.yml@main
|
||||||
|
needs: [build-and-test, check-version]
|
||||||
|
with:
|
||||||
|
remote_url: https://leandro_costa:${{ secrets.BITBUCKET_TOKEN }}@bitbucket.org/leandro_costa/lhmask.git
|
||||||
|
|
||||||
publish-staging:
|
publish-staging:
|
||||||
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/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 +101,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'
|
||||||
|
@ -114,8 +120,3 @@ jobs:
|
||||||
npm publish
|
npm publish
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
|
||||||
mirror:
|
|
||||||
uses: leandro/devops/.forgejo/workflows/mirror.yml@main
|
|
||||||
with:
|
|
||||||
remote_url: https://leandro_costa:${{ secrets.BITBUCKET_TOKEN }}@bitbucket.org/leandro_costa/lhmask.git
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue