next -> main
This commit is contained in:
parent
33e1562fc1
commit
abd7f86888
9 changed files with 15 additions and 17 deletions
4
.github/workflows/merge.yml
vendored
4
.github/workflows/merge.yml
vendored
|
|
@ -15,13 +15,13 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
ref: next
|
ref: main
|
||||||
- uses: actions/setup-node@v4
|
- uses: actions/setup-node@v4
|
||||||
with:
|
with:
|
||||||
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 release --source next --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
|
- run: npx pr-release merge --target release --source main --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
||||||
|
|
|
||||||
6
.github/workflows/pr.yml
vendored
6
.github/workflows/pr.yml
vendored
|
|
@ -2,7 +2,7 @@ name: pr
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ next ]
|
branches: [ main ]
|
||||||
|
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
|
|
@ -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 release --source next --compact --verbose --minimize-semver-change
|
- run: npx pr-release pr --verbose --target release --source main --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 release --source next --verbose --publish --minimize-semver-change
|
- run: npx pr-release infer-prerelease --preid=next --target release --source main --verbose --publish --minimize-semver-change
|
||||||
name: Publish
|
name: Publish
|
||||||
|
|
|
||||||
2
.github/workflows/push-main.yml
vendored
2
.github/workflows/push-main.yml
vendored
|
|
@ -9,5 +9,3 @@ jobs:
|
||||||
comment:
|
comment:
|
||||||
uses: MithrilJS/infra/.github/workflows/reject-pr.yml@main
|
uses: MithrilJS/infra/.github/workflows/reject-pr.yml@main
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
with:
|
|
||||||
correct_branch: next
|
|
||||||
|
|
|
||||||
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 release --source next --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
|
- run: npx pr-release rollback --verbose --target release --source main --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
name: test-next-push
|
name: test-main-push
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ next ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
concurrency: prr:pre-release
|
concurrency: prr:pre-release
|
||||||
|
|
@ -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 release --source next --compact --verbose --minimize-semver-change
|
- run: npx pr-release pr --verbose --target release --source main --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 release --source next --verbose --publish --minimize-semver-change
|
- run: npx pr-release infer-prerelease --preid=next --target release --source main --verbose --publish --minimize-semver-change
|
||||||
name: Publish
|
name: Publish
|
||||||
2
.github/workflows/test.yml
vendored
2
.github/workflows/test.yml
vendored
|
|
@ -2,7 +2,7 @@ name: test
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request_target:
|
pull_request_target:
|
||||||
branches: [ next ]
|
branches: [ main ]
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,9 +1,9 @@
|
||||||
# Mithril.js
|
# Mithril.js
|
||||||
|
|
||||||
[](https://www.npmjs.com/package/mithril)
|
[](https://www.npmjs.com/package/mithril)
|
||||||
[](https://github.com/MithrilJS/mithril.js/blob/next/LICENSE)
|
[](https://github.com/MithrilJS/mithril.js/blob/main/LICENSE)
|
||||||
[](https://www.npmjs.com/package/mithril)
|
[](https://www.npmjs.com/package/mithril)
|
||||||
[](https://www.npmjs.com/package/mithril)
|
[](https://www.npmjs.com/package/mithril)
|
||||||
[](https://opencollective.com/mithriljs)
|
[](https://opencollective.com/mithriljs)
|
||||||
[](https://mithril.zulipchat.com/)
|
[](https://mithril.zulipchat.com/)
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -38,7 +38,7 @@ To send a pull request:
|
||||||
|
|
||||||
- fork the repo (button at the top right in GitHub)
|
- fork the repo (button at the top right in GitHub)
|
||||||
- clone the forked repo to your computer (green button in GitHub)
|
- clone the forked repo to your computer (green button in GitHub)
|
||||||
- Switch to the `next` branch (run `git checkout next`)
|
- Switch to the `main` branch (run `git checkout main`)
|
||||||
- create a feature branch (run `git checkout -b the-feature-branch-name`)
|
- create a feature branch (run `git checkout -b the-feature-branch-name`)
|
||||||
- make your changes
|
- make your changes
|
||||||
- run the tests (run `npm test`)
|
- run the tests (run `npm test`)
|
||||||
|
|
|
||||||
|
|
@ -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 `release`.
|
Contributors should create their feature branch targetting the default branch `main`. When this branch is merged `pr-release` will either generate or update a release PR from `main` 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.
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue