diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2ccb99..338b4cb 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,6 +1,9 @@ name: Release on: + push: + branches: [main] + tags: ['v*'] release: types: [published] @@ -40,7 +43,9 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version-file: go.mod + # Use a pinned Go version instead of parsing go.mod to avoid + # failing on unsupported prerelease versions in the module file. + go-version: '1.23' - name: Download dependencies run: go mod download diff --git a/go.mod b/go.mod index 414d124..b069fab 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/binsquare/envmap -go 1.25.4 +go 1.23 require ( github.com/1Password/connect-sdk-go v1.5.0