diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index dc23615..c5fe031 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,6 +25,11 @@ on: required: false type: boolean default: false + INSTALL_GO: + description: "Whether to install Go in this workflow so later release workflow can run Go commands. Defaults to false." + required: false + type: boolean + default: false secrets: RELEASE_GH_TOKEN: description: "GitHub Token. Used to authenticate with GitHub at release step. This will overwrite the use of the default GitHub token." @@ -90,6 +95,13 @@ jobs: uses: actions/setup-node@v7.0.0 with: node-version: "lts/*" + + - name: Setup Go + if: inputs.INSTALL_GO + uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0 + with: + go-version-file: go.mod + - name: Install dependencies run: npm install semantic-release@v25.0.0 @semantic-release/exec@v7.1.0 @semantic-release/commit-analyzer@v13.0.1 @semantic-release/git@v10.0.1 @semantic-release/github@v12.0.9 @semantic-release/release-notes-generator@v14.1.1 conventional-changelog-conventionalcommits@v9.3.1 ${{ inputs.plugins }} -D - name: Verify the integrity of provenance attestations and registry signatures for installed dependencies diff --git a/README.md b/README.md index b531029..16cd35f 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,8 @@ When the workflow runs on a push to `develop`, it will fail if `main` is ahead o - `repository`: Allowed repository for workflow to run in. Example `ctfpilot/hello-world`. - `plugins`: Additional plugins to install. Example `@semantic-release/changelog @semantic-release/git` - `ENVIRONMENT`: The environment to deploy to. +- `INSTALL_UV`: Install `uv` in this workflow so later release workflow can run `uv` commands. Defaults to false. +- `INSTALL_GO`: Install `go` in this workflow so later release workflow can run `go` commands. Defaults to false. #### Secrets