main -> release
This commit is contained in:
parent
806cb99ead
commit
61ad84c1d9
6 changed files with 12 additions and 12 deletions
4
.github/workflows/merge.yml
vendored
4
.github/workflows/merge.yml
vendored
|
|
@ -2,7 +2,7 @@ name: merge
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ main ]
|
branches: [ release ]
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npx pr-release merge --target main --source next --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
|
- run: npx pr-release merge --target release --source next --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
4
.github/workflows/pr.yml
vendored
4
.github/workflows/pr.yml
vendored
|
|
@ -19,7 +19,7 @@ jobs:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npx pr-release pr --verbose --target main --source next --compact --verbose --minimize-semver-change
|
- run: npx pr-release pr --verbose --target release --source next --compact --verbose --minimize-semver-change
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
# The following will publish a prerelease to npm
|
# The following will publish a prerelease to npm
|
||||||
|
|
@ -27,5 +27,5 @@ jobs:
|
||||||
name: Setup NPM Auth
|
name: Setup NPM Auth
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
- run: npx pr-release infer-prerelease --preid=next --target main --source next --verbose --publish --minimize-semver-change
|
- run: npx pr-release infer-prerelease --preid=next --target release --source next --verbose --publish --minimize-semver-change
|
||||||
name: Publish
|
name: Publish
|
||||||
|
|
|
||||||
4
.github/workflows/push-main.yml
vendored
4
.github/workflows/push-main.yml
vendored
|
|
@ -1,8 +1,8 @@
|
||||||
name: Warn on pushing to `main`
|
name: Warn on pushing to `release`
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
types: [opened]
|
types: [opened]
|
||||||
branches: [main]
|
branches: [release]
|
||||||
permissions:
|
permissions:
|
||||||
issues: write
|
issues: write
|
||||||
jobs:
|
jobs:
|
||||||
|
|
|
||||||
2
.github/workflows/rollback.yml
vendored
2
.github/workflows/rollback.yml
vendored
|
|
@ -16,6 +16,6 @@ jobs:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npx pr-release rollback --verbose --target main --source next --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
|
- run: npx pr-release rollback --verbose --target release --source next --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
|
||||||
4
.github/workflows/test-next-push.yml
vendored
4
.github/workflows/test-next-push.yml
vendored
|
|
@ -21,7 +21,7 @@ jobs:
|
||||||
node-version: 20
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run build
|
- run: npm run build
|
||||||
- run: npx pr-release pr --verbose --target main --source next --compact --verbose --minimize-semver-change
|
- run: npx pr-release pr --verbose --target release --source next --compact --verbose --minimize-semver-change
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
# The following will publish a prerelease to npm
|
# The following will publish a prerelease to npm
|
||||||
|
|
@ -29,5 +29,5 @@ jobs:
|
||||||
name: Setup NPM Auth
|
name: Setup NPM Auth
|
||||||
env:
|
env:
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
- run: npx pr-release infer-prerelease --preid=next --target main --source next --verbose --publish --minimize-semver-change
|
- run: npx pr-release infer-prerelease --preid=next --target release --source next --verbose --publish --minimize-semver-change
|
||||||
name: Publish
|
name: Publish
|
||||||
|
|
|
||||||
|
|
@ -16,7 +16,7 @@ pr-release handles the following:
|
||||||
|
|
||||||
## For contributors
|
## For contributors
|
||||||
|
|
||||||
Contributors should create their feature branch targetting the default branch `next`. When this branch is merged `pr-release` will either generate or update a release PR from `next` to `main`.
|
Contributors should create their feature branch targetting the default branch `next`. When this branch is merged `pr-release` will either generate or update a release PR from `next` to `release`.
|
||||||
|
|
||||||
The description and title will be managed by [pr-release], including the semver version.
|
The description and title will be managed by [pr-release], including the semver version.
|
||||||
|
|
||||||
|
|
@ -50,8 +50,8 @@ Fixes to documentation can land whenever, updates to the site are built and publ
|
||||||
$ git checkout next
|
$ git checkout next
|
||||||
$ git pull mithriljs next
|
$ git pull mithriljs next
|
||||||
|
|
||||||
# Splat the docs folder from next onto main
|
# Splat the docs folder from next onto release
|
||||||
$ git checkout main
|
$ git checkout release
|
||||||
$ git checkout next -- ./docs
|
$ git checkout next -- ./docs
|
||||||
|
|
||||||
# Manually ensure that no new feature docs were added
|
# Manually ensure that no new feature docs were added
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue