Skip to content
This repository has been archived by the owner on Sep 9, 2022. It is now read-only.

Commit

Permalink
task: add more tasks to fix release workflow (build step)
Browse files Browse the repository at this point in the history
  • Loading branch information
abdfnx committed Apr 7, 2022
1 parent 9020813 commit 277fd9b
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ tasks:
cmds:
- if [ -f "date.txt" ]; then rm date.txt; fi
- if [ -f "tag.txt" ]; then rm tag.txt; fi
- if [ -d "node_modules" ]; then if ! [ -f "node_modules/@vercel/go/go.mod" ]; then touch node_modules/@vercel/go/go.mod; fi; fi
- task: fix-vercel-go-mod
- go run ./scripts/date.go >> date.txt
- git describe --abbrev=0 --tags >> tag.txt

Expand All @@ -33,6 +33,7 @@ tasks:

release:
cmds:
- task: node_checks
- BuildDate="$(cat date.txt)" goreleaser release --rm-dist --timeout 100m

build:
Expand Down Expand Up @@ -88,3 +89,12 @@ tasks:
- cd scoop
- rm secman.json
- cp ../dist/secman.json .

node_checks:
cmds:
- if ! [ -d ./node_modules ]; then yarn; fi
- task: fix-vercel-go-mod

fix-vercel-go-mod:
cmds:
- if [ -d "node_modules" ]; then if ! [ -f "node_modules/@vercel/go/go.mod" ]; then touch node_modules/@vercel/go/go.mod; fi; fi

0 comments on commit 277fd9b

Please # to comment.