Skip to content

Commit

Permalink
build web first in goreleaser
Browse files Browse the repository at this point in the history
and ignore any web files in main folder
  • Loading branch information
jdrews committed May 11, 2023
1 parent e22ef88 commit f9908db
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ logstation.conf
*.exe
openapi-generator-cli.jar
logstation.iml
/node_modules/

dist/

# main folder should not have web files
.yarn/
.yarnrc.yml
/node_modules/
package.json
3 changes: 2 additions & 1 deletion .goreleaser.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
before:
hooks:
- go mod tidy
- yarn -v # For debugging. Historical problems with running 1.x yarn. Need >=3.x yarn (berry)
- yarn --cwd web build
- go mod tidy
builds:
- env:
- CGO_ENABLED=0
Expand Down

0 comments on commit f9908db

Please sign in to comment.