Skip to content

Commit 1477b52

Browse files
Merge pull request #3 from Zhang-JiahangH/revert-2-codex/automate-versioning-in-ci/cd-workflow
Revert "ci: automate semantic versioning, changelog and npm release with Release Please"
2 parents f52f84f + 9baeb59 commit 1477b52

7 files changed

Lines changed: 5 additions & 77 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Publish to npm
1+
name: Release
22

33
on:
44
push:
@@ -26,20 +26,9 @@ jobs:
2626
node-version: 20.11.1
2727
registry-url: 'https://registry.npmjs.org/'
2828

29-
- run: pnpm install --frozen-lockfile
30-
31-
- name: Validate tag and package version
32-
run: |
33-
TAG_VERSION="${GITHUB_REF_NAME#v}"
34-
PKG_VERSION="$(node -p "require('./packages/react/package.json').version")"
35-
36-
if [ "$TAG_VERSION" != "$PKG_VERSION" ]; then
37-
echo "Tag version ($TAG_VERSION) does not match package version ($PKG_VERSION)."
38-
exit 1
39-
fi
40-
29+
- run: pnpm install
4130
- run: pnpm build
4231
- run: pnpm test
4332
- run: pnpm --filter react-virtualized-diff publish --access public --no-git-checks
4433
env:
45-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.release-please-manifest.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,6 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on Keep a Changelog, and this project follows Semantic Versioning.
66

7-
## [0.1.2] - 2026-04-06
8-
9-
### Added
10-
11-
- Added `release-please` workflow to automatically create version/changelog release PRs from conventional commits
12-
- Added release manifest/config to keep package versioning source-of-truth in repository metadata
13-
14-
### Changed
15-
16-
- Updated publish workflow to validate git tag version against `packages/react/package.json` before npm publish
17-
- Release flow now supports automated patch/minor bumps without manually editing workflow version values
18-
197
## [0.1.1] - 2026-04-06
208

219
### Added

README.md

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -117,21 +117,6 @@ See [CHANGELOG.md](./CHANGELOG.md) for tracked releases and supported capabiliti
117117

118118
---
119119

120-
## Automated versioning & release
121-
122-
This repository now uses **Release Please** to automate versioning and changelog generation.
123-
124-
- Merge commits to `main` using Conventional Commits (`fix:`, `feat:`, `feat!:` etc.)
125-
- Release Please opens/updates a release PR automatically
126-
- Merging that PR creates a `vX.Y.Z` tag and GitHub Release
127-
- npm publish workflow is triggered by that tag and publishes `react-virtualized-diff` automatically
128-
129-
Version bump rules (SemVer):
130-
131-
- `fix:`/`chore:` and similar => patch (`v0.1.x` -> `v0.1.x+1`)
132-
- `feat:` => minor (`v0.1.x` -> `v0.2.0`)
133-
- `feat!:` or `BREAKING CHANGE:` => major (`v0.x.x` -> `v1.0.0`)
134-
135120
## Future plan
136121

137122
### Near-term roadmap
@@ -148,7 +133,7 @@ Version bump rules (SemVer):
148133
- [ ] Dark/light theme presets and design tokens
149134
- [ ] SSR usage guide (Next.js / Remix examples)
150135
- [ ] More real-world examples (JSON, logs, markdown, code)
151-
- [x] CI release automation + semantic versioning workflow
136+
- [ ] CI release automation + semantic versioning workflow
152137
- [ ] Contribution guide and issue templates
153138
- [ ] International docs beyond English/Chinese
154139

packages/react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-virtualized-diff",
3-
"version": "0.1.2",
3+
"version": "0.1.1",
44
"description": "High-performance React diff viewer for large files",
55
"main": "./dist/index.cjs",
66
"module": "./dist/index.mjs",

release-please-config.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)