fix: update the url #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
branches: | |
- main | |
- master | |
jobs: | |
analyze-commits: | |
runs-on: ubuntu-latest | |
outputs: | |
version-next: ${{ steps.next-version.outputs.release-version }} | |
version-next-tag: ${{ steps.next-version.outputs.release-tag }} | |
version-next-type: ${{ steps.next-version.outputs.release-type }} | |
steps: | |
- uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
disable-sudo: true | |
egress-policy: audit | |
allowed-endpoints: > | |
github.com:443 | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7 | |
- name: "Setup Node" | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b #4.0.3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn global add semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/exec @semantic-release/release-notes-generator @semantic-release/commit-analyzer conventional-changelog-conventionalcommits | |
- name: Get next version | |
id: next-version | |
run: semantic-release --dryRun | |
env: | |
GITHUB_TOKEN: ${{ secrets.WEAREFRANK_BOT_PAT }} | |
GH_TOKEN: ${{ secrets.WEAREFRANK_BOT_PAT }} | |
ci: | |
uses: wearefrank/ci-cd-templates/.github/workflows/ci-generic.yml@e073950d36ffdeb9f018b14b2ca0c13449825b2f #1.0.3 | |
needs: analyze-commits | |
secrets: | |
token: ${{ secrets.WEAREFRANK_BOT_PAT }} | |
if: ${{ needs.analyze-commits.outputs.version-next-type != '' }} | |
with: | |
version: ${{ needs.analyze-commits.outputs.version-next }} | |
release: | |
runs-on: ubuntu-latest | |
needs: | |
- analyze-commits | |
- ci | |
steps: | |
- uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1 | |
with: | |
egress-policy: audit | |
- name: Checkout | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7 | |
with: | |
token: ${{ secrets.WEAREFRANK_BOT_PAT }} | |
- name: Download Pre-build Artifacts | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8 | |
with: | |
pattern: pre-build-* | |
merge-multiple: true | |
- name: Download Build Artifacts | |
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 #4.1.8 | |
with: | |
pattern: build-* | |
merge-multiple: true | |
- name: Setup Node | |
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b #4.0.3 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn global add semantic-release @semantic-release/changelog @semantic-release/git @semantic-release/github @semantic-release/exec @semantic-release/release-notes-generator @semantic-release/commit-analyzer conventional-changelog-conventionalcommits | |
- name: Semantic Release | |
run: semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.WEAREFRANK_BOT_PAT }} | |
GH_TOKEN: ${{ secrets.WEAREFRANK_BOT_PAT }} | |
docker-release: | |
uses: wearefrank/ci-cd-templates/.github/workflows/docker-release-generic.yml@e073950d36ffdeb9f018b14b2ca0c13449825b2f #1.0.3 | |
needs: | |
- analyze-commits | |
- release | |
secrets: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }} | |
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }} | |
with: | |
version: ${{ needs.analyze-commits.outputs.version-next }} | |
docusaurus-release: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
needs: | |
- release | |
# Set to true to enable Docusaurus publishing to GitHub Pages | |
if: false | |
uses: wearefrank/ci-cd-templates/.github/workflows/docusaurus-release.yml@e073950d36ffdeb9f018b14b2ca0c13449825b2f #1.0.3 |