Skip to content

Commit e9799a9

Browse files
committed
fix(releasing): clean GITHUB_TOKEN env on non release runs
Signed-off-by: Artur Troian <troian@users.noreply.github.com>
1 parent 8b7ff35 commit e9799a9

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

make/releasing.mk

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,6 @@ ifneq ($(GOWORK), off)
1717
GORELEASER_GOWORK := /go/src/$(GORELEASER_MOD_MOUNT)/go.work
1818
endif
1919

20-
ifneq ($(GORELEASER_RELEASE),true)
21-
ifeq (,$(findstring publish,$(GORELEASER_SKIP)))
22-
GORELEASER_SKIP += publish
23-
endif
24-
25-
GITHUB_TOKEN=
26-
endif
27-
2820
ifneq (,$(GORELEASER_SKIP))
2921
GORELEASER_SKIP := --skip=$(subst $(SPACE),$(COMMA),$(strip $(GORELEASER_SKIP)))
3022
endif
@@ -64,6 +56,7 @@ GORELEASER_ARGS := --clean
6456

6557
ifeq (,$(findstring release,$(BUILDOPTS)))
6658
GORELEASER_ARGS += --skip=publish,validate --snapshot
59+
GITHUB_TOKEN=
6760
endif
6861

6962
ifneq (,$(findstring verbose,$(BUILDOPTS)))

0 commit comments

Comments
 (0)