From e10187ba36314b0af57195767430bf7ea0aaa2bf Mon Sep 17 00:00:00 2001 From: Bartosz Date: Mon, 7 Sep 2026 16:26:00 +0200 Subject: [PATCH] Use main as the default branch. --- .github/workflows/lint.yml | 2 +- .github/workflows/test.yml | 2 +- RELEASING.md | 15 +++++++-------- 3 files changed, 9 insertions(+), 10 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 238f05f..399d1a4 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -2,7 +2,7 @@ name: Lint on: push: - branches: [master, develop] + branches: [main] pull_request: jobs: diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index c9fbb6b..3371208 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,7 +2,7 @@ name: Test on: push: - branches: [master, develop] + branches: [main] pull_request: jobs: diff --git a/RELEASING.md b/RELEASING.md index d258810..048edda 100644 --- a/RELEASING.md +++ b/RELEASING.md @@ -1,14 +1,13 @@ # Releasing -1. Create branch `release/X.Y.Z` from `develop`. +1. Create branch `release/X.Y.Z` from `main`. 2. Update `version` in `package.json` to the new version 3. Run `npm install` (to refresh `package-lock.json`) 4. Update the `CHANGELOG.md` for the impending release 5. `git commit -am "release X.Y.Z"` (where X.Y.Z is the new version) -6. Push to Github, make PR to the `develop` branch, and when approved, merge. -7. Pull latest `develop`, merge it into `master`, and push `master` to `origin`. -8. Make a release on Github from the `master` branch, specify tag as `vX.Y.Z` to create a tag. -9. `git checkout master && git pull` -10. Clean unversioned files: `git clean -fdx dist` -11. `npm run build && npm pack` to verify the package -12. `npm publish` +6. Push to Github, make PR to the `main` branch, and when approved, merge. +7. Make a release on Github from the `main` branch, specify tag as `vX.Y.Z` to create a tag. +8. `git checkout main && git pull` +9. Clean unversioned files: `git clean -fdx dist` +10. `npm run build && npm pack` to verify the package +11. `npm publish`