Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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."
Expand Down Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading