Skip to content

test: larva unit-tests for selectBox feature in FormDataTransforms_Cu… #69

test: larva unit-tests for selectBox feature in FormDataTransforms_Cu…

test: larva unit-tests for selectBox feature in FormDataTransforms_Cu… #69

Workflow file for this run

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@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.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@60edb5dd545a775178f52524783378180af0d1f8 #4.0.2
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.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
ci:
uses: wearefrank/ci-cd-templates/.github/workflows/ci-generic.yml@main
needs: analyze-commits
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
if: ${{ needs.analyze-commits.outputs.version-next-type != '' }}
with:
version: ${{ needs.analyze-commits.outputs.version-next }}
docker-image-repo: ${{ vars.DOCKER_IMAGE_REPOSITORY }}
docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }}
upload-sarif-to-security: false
release:
runs-on: ubuntu-latest
needs:
- analyze-commits
- ci
steps:
- uses: step-security/harden-runner@5c7944e73c4c2a096b17a9cb74d65b6c2bbafbde # v2.9.1
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7
with:
token: ${{ secrets.GH_TOKEN }}
- 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@60edb5dd545a775178f52524783378180af0d1f8 #4.0.2
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.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
docker-release:
uses: wearefrank/ci-cd-templates/.github/workflows/docker-release-generic.yml@main
needs:
- analyze-commits
- ci
- release
secrets:
token: ${{ secrets.GITHUB_TOKEN }}
dockerhub-username: ${{ secrets.DOCKERHUB_USERNAME }}
dockerhub-token: ${{ secrets.DOCKERHUB_TOKEN }}
with:
version: ${{ needs.analyze-commits.outputs.version-next }}
docker-image-repo: ${{ vars.DOCKER_IMAGE_REPOSITORY }}
docker-image-name: ${{ vars.DOCKER_IMAGE_NAME }}
docusaurus-deploy:
needs:
- release
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 18.x
cache: npm
cache-dependency-path: docusaurus/package-lock.json
- name: Install dependencies
run: cd ./docusaurus && npm install --frozen-lockfile --non-interactive
- name: Build
run: cd ./docusaurus && npm run build
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./docusaurus/build
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4