Skip to content

Commit 423c48d

Browse files
author
Juli Ovechkina
authored
ci: add workflow for version 2.x.x (#381)
1 parent b3c99cd commit 423c48d

File tree

4 files changed

+49
-35
lines changed

4 files changed

+49
-35
lines changed

.github/workflows/release-1.x.x-fix.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release version 1.x.x.
2+
3+
on:
4+
push:
5+
branches: [version-1.x.x/fixes]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: gravity-ui/release-action@v1
12+
with:
13+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
14+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15+
node-version: 14
16+
npm-dist-tag: untagged
17+
default-branch: version-1.x.x/fixes
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Release version 2.x.x.
2+
3+
on:
4+
push:
5+
branches: [version-2.x.x]
6+
7+
jobs:
8+
release:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: gravity-ui/release-action@v1
12+
with:
13+
github-token: ${{ secrets.GRAVITY_UI_BOT_GITHUB_TOKEN }}
14+
npm-token: ${{ secrets.GRAVITY_UI_BOT_NPM_TOKEN }}
15+
node-version: 14
16+
npm-dist-tag: untagged
17+
default-branch: version-2.x.x

README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -339,3 +339,18 @@ Release-As: 3.0.0-beta.0' --allow-empty
339339

340340
4. Release please robot will create a new PR to the branch `beta` with updated CHANGELOG.md and bump version of the package
341341
5. You can repeat it as many as you want. When you ready to release the latest major version without beta tag, you have to create PR from branch `beta` to branch `main`. Notice that it is normal that your package version will be with beta tag. Robot knows that and change it properly. `3.0.0-beta.0` will become `3.0.0`
342+
343+
### Release flow for previous major-versions
344+
345+
If you want to release a new version in previous major after commit it to the main, please do the following:
346+
347+
1. Update necessary branch, the previous major release branch names are:
348+
1. `version-1.x.x/fixes` - for major 1.x.x
349+
2. `version-2.x.x` - for major 2.x.x
350+
2. Checkout a new branch from the previous major release branch
351+
3. Cherry-pick your commit from the branch `main`
352+
4. Create PR, get an approval and merge into the previous major release branch
353+
5. Squash and merge your PR (It is important to release a new version with Github-Actions)
354+
6. Wait until robot creates a PR with a new version of the package and information about your changes in CHANGELOG.md. You can see the process on [the Actions tab](https://github.com/gravity-ui/page-constructor/actions).
355+
7. Check your changes in CHANGELOG.md and approve robot's PR.
356+
8. Squash and merge PR. You can see release process on [the Actions tab](https://github.com/gravity-ui/page-constructor/actions).

0 commit comments

Comments
 (0)