Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/ipa-changelog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ jobs:
env:
BASE_BRANCH: ${{ github.event.pull_request.base.ref }}
run: |
chmod +x ./.github/scripts/ipa_version_check.sh
version_changed=$(./.github/scripts/ipa_version_check.sh)
echo "Version changed? ${version_changed}"
echo "version_changed=${version_changed}" >> "${GITHUB_OUTPUT}"
Expand Down
7 changes: 0 additions & 7 deletions .github/workflows/ipa-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,9 @@ jobs:
- name: Fetch Versions
id: version_check
run: |
chmod +x ./.github/scripts/ipa_version_check.sh
version_changed=$(./.github/scripts/ipa_version_check.sh)
echo "Version changed? ${version_changed}"
echo "version_changed=${version_changed}" >> "${GITHUB_ENV}"
- name: Check Version Bump
run: |
if [[ "${{ env.version_changed }}" == "false" ]]; then
echo "No version bump to release."
exit 0
fi

publish:
needs: check-version
Expand Down
16 changes: 10 additions & 6 deletions tools/spectral/ipa/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,14 +68,18 @@ npm run gen-ipa-docs

- [ ] Reference related issues (e.g., Closes #123)

#### For IPA Package version bump
---

A new version of the IPA package will be released when the version is bumped. Before merging, please run
```
npm run gen-ipa-changelog
```
and commit the changes. The changelog must only be updated alongside a version bump.
## IPA Package Release

A new version of the IPA package will be released when the version in the package.json is changed. To release a new version:

- [ ] Determine whether your update is [major/minor/patch] following [semantic versioning](https://semver.org/)
- [ ] Update the version number in package.json
- [ ] Run `npm run gen-ipa-changelog` and commit the changes.
- [ ] Open a PR and ensure the title is conventional and scoped to IPA (ie: `ci(ipa): new version`)
Copy link
Member

@wtrocki wtrocki Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Some wording/intentions changed. Reordered as we say people to bump package and then generate changelog where we need changelog to figure out how to bump package

Suggested change
A new version of the IPA package will be released when the version in the package.json is changed. To release a new version:
- [ ] Determine whether your update is [major/minor/patch] following [semantic versioning](https://semver.org/)
- [ ] Update the version number in package.json
- [ ] Run `npm run gen-ipa-changelog` and commit the changes.
- [ ] Open a PR and ensure the title is conventional and scoped to IPA (ie: `ci(ipa): new version`)
Release process requires generation of changelog and manual update of version in package.json.
A new version of the IPA package will be released when the version in the package.json is changed.
Process:
- [ ] Run `npm run gen-ipa-changelog` and commit the changes.
- [ ] Based on changelog determine whether your update is [major/minor/patch] following [semantic versioning](https://semver.org/)
- [ ] Update the version number in package.json
- [ ]
- [ ] Open a PR and ensure the title is conventional and scoped to IPA (ie: `ci(ipa): package release`)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a good point, I made the assumption here that a version bump will have been reviewed internally given commit history. I will add this nit to fix in our documentation changes ticket

Copy link
Member

@wtrocki wtrocki Aug 1, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made the assumption here that a version bump will have been reviewed internally given commit history.

IMHO Author owns the bump decision. Otherwise you would have all reviewers duplicating the work of author to validate version bumps


The changelog must only be updated alongside a version bump. A PR for a version release should not include other changes.
---
## Getting Started with IPA Rule Development

Expand Down
Loading