diff --git a/.goreleaser.yml b/.goreleaser.yml index 576abf82..72dc035b 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,6 +1,6 @@ before: hooks: - - rm -rf static + - npm run clean - npm run build - packr builds: diff --git a/package.json b/package.json index 993556a3..86911781 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,8 @@ "start": "concurrently 'go run main.go' 'npm run watch-assets'", "watch-assets": "parcel watch assets/index.html -d static", "build": "parcel build assets/index.html -d static", - "clean": "rm -rf static" + "clean": "rm -rf static", + "release": "goreleaser --rm-dist" }, "repository": { "type": "git",