Skip to content

Commit

Permalink
try goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
raulfdm committed Feb 11, 2024
1 parent 0b67188 commit b412ee3
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 21 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@ jobs:
with:
go-version: 1.21.7

- name: Display Go version
run: go version

- name: Install dependencies
run: go get .

Expand Down
30 changes: 12 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Release

on:
push:
branches:
- main
push
# branches:
# - main

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -15,22 +15,16 @@ jobs:
- name: Checkout Repo
uses: actions/checkout@v4

- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Setup Go
uses: actions/setup-go@v4
with:
bun-version: 1.0.25
go-version: 1.21.7

- name: Install Dependencies
run: bun i
- name: Install dependencies
run: go get .

- name: Install pnpm
run: bun i -g pnpm
- name: Install goreleaser
run: go install github.com/goreleaser/goreleaser@latest

- name: Create Release Pull Request
uses: changesets/action@v1
with:
publish: bun run scripts/release.ts
createGithubReleases: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Release
run: goreleaser release --rm-dist
5 changes: 5 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@ changelog:
exclude:
- "^docs:"
- "^test:"

release:
github:
owner: raulfdm
name: node-versions-cli

0 comments on commit b412ee3

Please sign in to comment.