Skip to content
This repository has been archived by the owner on Aug 3, 2024. It is now read-only.

Commit

Permalink
fix(goreleaser): Build frontend and release as draft (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
amalshaji authored Feb 20, 2023
1 parent b1fd98f commit d41c615
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: goreleaser
name: Publish packages

on:
push:
Expand All @@ -19,13 +19,34 @@ jobs:
with:
fetch-depth: 0
- run: git fetch --force --tags
- uses: actions/setup-go@v3

- name: Setup go
uses: actions/setup-go@v3
with:
go-version: ">=1.20"
cache: true

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 7.27.1

- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 18.12.1
cache: "pnpm"
cache-dependency-path: "**/pnpm-lock.yaml"

- name: Build frontend
run: |
npm i -g pnpm
pnpm install --dir internal/server/web --frozen-lockfile && pnpm run --dir internal/server/web build
# More assembly might be required: Docker logins, GPG, etc. It all depends
# on your needs.
- uses: goreleaser/goreleaser-action@v4
- name: Publish packages
uses: goreleaser/goreleaser-action@v4
with:
# either 'goreleaser' (default) or 'goreleaser-pro':
distribution: goreleaser
Expand Down
1 change: 1 addition & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ changelog:
- "^test:"
release:
name_template: "v{{ .Version }}"
draft: true

0 comments on commit d41c615

Please sign in to comment.