Skip to content

Commit 69b4bcf

Browse files
author
Test User
committed
chore: v1.0.4-alpha - Homebrew v2 syntax and npm publishing ready
- Fixed Homebrew formula to use v2 syntax (removed deprecated bottle :unneeded) - Updated formula templates with platform-specific install methods - Enabled npm publish job in release workflow (bin/doplan.js ready) - Updated documentation with Homebrew v2 syntax examples - Updated package.json version to 1.0.4-alpha
1 parent e099e35 commit 69b4bcf

File tree

6 files changed

+82
-34
lines changed

6 files changed

+82
-34
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@ jobs:
5656
name: Publish to npm
5757
runs-on: ubuntu-latest
5858
needs: release
59-
if: false # Disabled until npm package structure is complete (bin/doplan.js needed)
60-
# TODO: Enable once npm package structure is set up with bin/doplan.js
59+
# npm package structure is ready (bin/doplan.js exists)
6160
steps:
6261
- name: Checkout code
6362
uses: actions/checkout@v4

CHANGELOG.md

Lines changed: 20 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
## [Unreleased]
99

10-
### Added
11-
- CI/CD workflows for testing, linting, and building
12-
- Multi-platform builds (Linux, macOS, Windows)
13-
- Automated release process with GoReleaser
14-
- Homebrew tap support (pending repository setup)
15-
- PR checks workflow for automated quality gates
16-
- Coverage reporting with Codecov integration
17-
- Enhanced release automation with changelog generation
10+
## [1.0.4-alpha] - 2025-11-14
11+
12+
### Fixed
13+
- **Homebrew v2 Syntax**: Updated Homebrew formula to use v2 syntax (removed deprecated `bottle :unneeded`)
14+
- Platform-specific `install` methods inside each `on_macos` and `on_linux` block
15+
- Added `Hardware::CPU.is_64_bit?` checks for Linux (v2 requirement)
16+
- Updated formula templates in `Formula/doplan.rb` and setup scripts
17+
- GoReleaser automatically generates v2-compliant formulas
18+
19+
### Changed
20+
- **npm Publishing**: Enabled npm publish job in release workflow
21+
- `bin/doplan.js` wrapper script is ready and verified
22+
- npm package structure complete and ready for publishing
23+
- Automated npm publishing will trigger on tag pushes (requires `NPM_TOKEN` secret)
24+
25+
### Documentation
26+
- Updated `docs/development/HOMEBREW_SETUP.md` with Homebrew v2 syntax examples and notes
27+
- Added notes about GoReleaser's automatic v2 syntax generation
1828

1929
## [1.0.0] - 2025-11-14
2030

@@ -108,6 +118,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
108118
- Contribution guidelines
109119
- Release process documentation
110120

111-
[Unreleased]: https://github.com/DoPlan-dev/CLI/compare/v1.0.0...HEAD
121+
[Unreleased]: https://github.com/DoPlan-dev/CLI/compare/v1.0.4-alpha...HEAD
122+
[1.0.4-alpha]: https://github.com/DoPlan-dev/CLI/releases/tag/v1.0.4-alpha
112123
[1.0.0]: https://github.com/DoPlan-dev/CLI/releases/tag/v1.0.0
113124

Formula/doplan.rb

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,32 +7,43 @@ class Doplan < Formula
77
homepage "https://github.com/DoPlan-dev/CLI"
88
version "1.0.0"
99
license "MIT"
10-
bottle :unneeded
1110

1211
on_macos do
1312
if Hardware::CPU.intel?
1413
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_darwin_amd64.tar.gz"
1514
sha256 "REPLACE_WITH_ACTUAL_SHA256_AFTER_FIRST_RELEASE"
15+
16+
def install
17+
bin.install "doplan"
18+
end
1619
end
1720
if Hardware::CPU.arm?
1821
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_darwin_arm64.tar.gz"
1922
sha256 "REPLACE_WITH_ACTUAL_SHA256_AFTER_FIRST_RELEASE"
23+
24+
def install
25+
bin.install "doplan"
26+
end
2027
end
2128
end
2229

2330
on_linux do
24-
if Hardware::CPU.intel?
31+
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
2532
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_linux_amd64.tar.gz"
2633
sha256 "REPLACE_WITH_ACTUAL_SHA256_AFTER_FIRST_RELEASE"
34+
35+
def install
36+
bin.install "doplan"
37+
end
2738
end
28-
if Hardware::CPU.arm?
39+
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
2940
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_linux_arm64.tar.gz"
3041
sha256 "REPLACE_WITH_ACTUAL_SHA256_AFTER_FIRST_RELEASE"
31-
end
32-
end
3342

34-
def install
35-
bin.install "doplan"
43+
def install
44+
bin.install "doplan"
45+
end
46+
end
3647
end
3748

3849
test do

docs/development/HOMEBREW_SETUP.md

Lines changed: 24 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,32 +48,43 @@ class Doplan < Formula
4848
homepage "https://github.com/DoPlan-dev/CLI"
4949
version "1.0.0"
5050
license "MIT"
51-
bottle :unneeded
5251

5352
on_macos do
5453
if Hardware::CPU.intel?
5554
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_darwin_amd64.tar.gz"
5655
sha256 "REPLACE_WITH_ACTUAL_SHA256"
56+
57+
def install
58+
bin.install "doplan"
59+
end
5760
end
5861
if Hardware::CPU.arm?
5962
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_darwin_arm64.tar.gz"
6063
sha256 "REPLACE_WITH_ACTUAL_SHA256"
64+
65+
def install
66+
bin.install "doplan"
67+
end
6168
end
6269
end
6370

6471
on_linux do
65-
if Hardware::CPU.intel?
72+
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
6673
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_linux_amd64.tar.gz"
6774
sha256 "REPLACE_WITH_ACTUAL_SHA256"
75+
76+
def install
77+
bin.install "doplan"
78+
end
6879
end
69-
if Hardware::CPU.arm?
80+
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
7081
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_linux_arm64.tar.gz"
7182
sha256 "REPLACE_WITH_ACTUAL_SHA256"
72-
end
73-
end
7483

75-
def install
76-
bin.install "doplan"
84+
def install
85+
bin.install "doplan"
86+
end
87+
end
7788
end
7889

7990
test do
@@ -104,7 +115,7 @@ See [DoPlan CLI](https://github.com/DoPlan-dev/CLI) for documentation.
104115
105116
## GoReleaser Configuration
106117
107-
The GoReleaser configuration (`.goreleaser.yml`) is already set up to automatically create PRs to the Homebrew tap repository:
118+
The GoReleaser configuration (`.goreleaser.yml`) is already set up to automatically create PRs to the Homebrew tap repository. GoReleaser will automatically generate Homebrew v2 syntax (without deprecated `bottle :unneeded`) with platform-specific install methods:
108119
109120
```yaml
110121
homebrew:
@@ -126,6 +137,11 @@ homebrew:
126137
bin.install "doplan"
127138
```
128139

140+
**Note:** GoReleaser automatically generates Homebrew v2 syntax with:
141+
- No deprecated `bottle :unneeded` directive
142+
- Platform-specific `install` methods inside each `on_macos` and `on_linux` block
143+
- Proper architecture checks (`Hardware::CPU.is_64_bit?` for Linux)
144+
129145
## GitHub Token Setup
130146

131147
### 1. Create Personal Access Token

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "doplan-cli",
3-
"version": "1.0.0",
3+
"version": "1.0.4-alpha",
44
"description": "Project workflow automation tool that transforms app ideas into well-structured, documented, and trackable development projects",
55
"main": "index.js",
66
"bin": {

scripts/setup-homebrew-tap.sh

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -90,32 +90,43 @@ class Doplan < Formula
9090
homepage "https://github.com/DoPlan-dev/CLI"
9191
version "1.0.0"
9292
license "MIT"
93-
bottle :unneeded
9493
9594
on_macos do
9695
if Hardware::CPU.intel?
9796
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_darwin_amd64.tar.gz"
9897
sha256 "REPLACE_WITH_ACTUAL_SHA256"
98+
99+
def install
100+
bin.install "doplan"
101+
end
99102
end
100103
if Hardware::CPU.arm?
101104
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_darwin_arm64.tar.gz"
102105
sha256 "REPLACE_WITH_ACTUAL_SHA256"
106+
107+
def install
108+
bin.install "doplan"
109+
end
103110
end
104111
end
105112
106113
on_linux do
107-
if Hardware::CPU.intel?
114+
if Hardware::CPU.intel? && Hardware::CPU.is_64_bit?
108115
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_linux_amd64.tar.gz"
109116
sha256 "REPLACE_WITH_ACTUAL_SHA256"
117+
118+
def install
119+
bin.install "doplan"
120+
end
110121
end
111-
if Hardware::CPU.arm?
122+
if Hardware::CPU.arm? && Hardware::CPU.is_64_bit?
112123
url "https://github.com/DoPlan-dev/CLI/releases/download/v1.0.0/doplan_1.0.0_linux_arm64.tar.gz"
113124
sha256 "REPLACE_WITH_ACTUAL_SHA256"
114-
end
115-
end
116125
117-
def install
118-
bin.install "doplan"
126+
def install
127+
bin.install "doplan"
128+
end
129+
end
119130
end
120131
121132
test do

0 commit comments

Comments
 (0)