-
Notifications
You must be signed in to change notification settings - Fork 1
Add CHANGELOG.md and automated release tag workflow for v0.1.0 #2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
39eb768
Initial plan
Copilot 9280111
Add CHANGELOG.md for version 0.1.0
Copilot 3cac642
Simplify CHANGELOG.md to single-line initial release entry
Copilot 7a80e31
Add GitHub Action to create release tag from package.json version
Copilot 3cbc9df
Improve create-release-tag workflow error handling
Copilot File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,64 @@ | ||
| name: Create Release Tag | ||
|
|
||
| on: | ||
| workflow_dispatch: # Allows manual triggering from GitHub UI | ||
|
|
||
| jobs: | ||
| create-tag: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: write | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 # Fetch all history for tags | ||
|
|
||
| - name: Set up Node.js | ||
| uses: actions/setup-node@v4 | ||
| with: | ||
| node-version: '22.x' | ||
|
|
||
| - name: Extract version from package.json | ||
| id: package-version | ||
| run: | | ||
| if [ ! -f package.json ]; then | ||
| echo "Error: package.json not found" | ||
| exit 1 | ||
| fi | ||
| VERSION=$(node -p "require('./package.json').version") | ||
| if [ -z "$VERSION" ] || [ "$VERSION" = "undefined" ]; then | ||
| echo "Error: version field not found in package.json" | ||
| exit 1 | ||
| fi | ||
| echo "version=$VERSION" >> $GITHUB_OUTPUT | ||
| echo "tag=v$VERSION" >> $GITHUB_OUTPUT | ||
| echo "Extracted version: $VERSION" | ||
| echo "Tag will be: v$VERSION" | ||
|
|
||
| - name: Check if tag exists | ||
| id: check-tag | ||
| run: | | ||
| if git rev-parse "v${{ steps.package-version.outputs.version }}" >/dev/null 2>&1; then | ||
| echo "exists=true" >> $GITHUB_OUTPUT | ||
| echo "Tag v${{ steps.package-version.outputs.version }} already exists" | ||
| else | ||
| echo "exists=false" >> $GITHUB_OUTPUT | ||
| echo "Tag v${{ steps.package-version.outputs.version }} does not exist" | ||
| fi | ||
|
|
||
| - name: Create and push tag | ||
| if: steps.check-tag.outputs.exists == 'false' | ||
| run: | | ||
| git config user.name "github-actions[bot]" | ||
| git config user.email "github-actions[bot]@users.noreply.github.com" | ||
| git tag -a "${{ steps.package-version.outputs.tag }}" -m "Release ${{ steps.package-version.outputs.tag }}" | ||
| git push origin "${{ steps.package-version.outputs.tag }}" | ||
| echo "Created and pushed tag ${{ steps.package-version.outputs.tag }}" | ||
|
|
||
| - name: Tag already exists | ||
| if: steps.check-tag.outputs.exists == 'true' | ||
| run: | | ||
| echo "Tag ${{ steps.package-version.outputs.tag }} already exists. Skipping tag creation." | ||
| echo "The release workflow may have already been triggered for this version." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| # Changelog | ||
|
|
||
| All notable changes to this project will be documented in this file. | ||
|
|
||
| The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), | ||
| and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). | ||
|
|
||
| ## [0.1.0] - 2026-01-12 | ||
|
|
||
| ### Added | ||
| - Initial release of Odette - Event invitation and RSVP management system | ||
|
|
||
| [0.1.0]: https://github.com/cdanis/odette/releases/tag/v0.1.0 | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You don't need any more content after this @copilot
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Simplified to just the initial release line. Fixed in 3cac642.