diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2025895ca..b73f1dcb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -40,6 +40,18 @@ jobs: - name: Check run: cargo check --workspace --all-targets --all-features + npm_constants: + name: Check if node constants are up to date + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + show-progress: false + - name: Rebuild constants + run: npm run build:core:constants + - name: Check that constants are not changed + run: git diff --exit-code + cargo_deny: name: cargo deny runs-on: ubuntu-latest diff --git a/RELEASE.md b/RELEASE.md index 341ecc9cf..d206bdfc6 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -4,21 +4,18 @@ For example, to release version 1.116.0 of the core, do the following steps. 1. Resolve all [blocker issues](https://github.com/deltachat/deltachat-core-rust/labels/blocker). -2. Run `npm run build:core:constants` in the root of the repository - and commit generated `node/constants.js`, `node/events.js` and `node/lib/constants.js`. +2. Update the changelog: `git cliff --unreleased --tag 1.116.0 --prepend CHANGELOG.md` or `git cliff -u -t 1.116.0 -p CHANGELOG.md`. -3. Update the changelog: `git cliff --unreleased --tag 1.116.0 --prepend CHANGELOG.md` or `git cliff -u -t 1.116.0 -p CHANGELOG.md`. - -4. add a link to compare previous with current version to the end of CHANGELOG.md: +3. add a link to compare previous with current version to the end of CHANGELOG.md: `[1.116.0]: https://github.com/deltachat/deltachat-core-rust/compare/v1.115.2...v1.116.0` -5. Update the version by running `scripts/set_core_version.py 1.116.0`. +4. Update the version by running `scripts/set_core_version.py 1.116.0`. -6. Commit the changes as `chore(release): prepare for 1.116.0`. +5. Commit the changes as `chore(release): prepare for 1.116.0`. Optionally, use a separate branch like `prep-1.116.0` for this commit and open a PR for review. -7. Tag the release: `git tag -a v1.116.0`. +6. Tag the release: `git tag -a v1.116.0`. -8. Push the release tag: `git push origin v1.116.0`. +7. Push the release tag: `git push origin v1.116.0`. -9. Create a GitHub release: `gh release create v1.116.0 -n ''`. +8. Create a GitHub release: `gh release create v1.116.0 -n ''`.