De-master the repo
This commit is contained in:
parent
d32d59413e
commit
e000cd0803
6 changed files with 19 additions and 21 deletions
4
.github/workflows/issue-create.yml
vendored
4
.github/workflows/issue-create.yml
vendored
|
|
@ -4,9 +4,7 @@ on:
|
|||
types: [opened]
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
permissions:
|
||||
issues: write
|
||||
repository-projects: write
|
||||
jobs:
|
||||
notify_triage:
|
||||
uses: MithrilJS/infra/.github/workflows/notify-triage.yml@main
|
||||
secrets: inherit
|
||||
|
|
|
|||
13
.github/workflows/push-main.yml
vendored
Normal file
13
.github/workflows/push-main.yml
vendored
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
name: Warn on pushing to `main`
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
branches: [main]
|
||||
permissions:
|
||||
issues: write
|
||||
jobs:
|
||||
comment:
|
||||
uses: MithrilJS/infra/.github/workflows/reject-pr.yml@main
|
||||
secrets: inherit
|
||||
with:
|
||||
correct_branch: next
|
||||
13
.github/workflows/push-master.yml
vendored
13
.github/workflows/push-master.yml
vendored
|
|
@ -1,13 +0,0 @@
|
|||
name: Warn on pushing to `master`
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [opened]
|
||||
branches: [master]
|
||||
permissions:
|
||||
issues: write
|
||||
jobs:
|
||||
comment:
|
||||
uses: ./.github/workflows/_post-comment.yml
|
||||
with:
|
||||
url: ${{ github.event.pull_request.url }}
|
||||
message: ⚠⚠⚠ Hey @${{ github.actor }}, did you mean to open this against `next`? ⚠⚠⚠
|
||||
2
.github/workflows/rollback.yml
vendored
2
.github/workflows/rollback.yml
vendored
|
|
@ -16,6 +16,6 @@ jobs:
|
|||
node-version: 20
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npx pr-release rollback --verbose --target master --source next --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
|
||||
- run: npx pr-release rollback --verbose --target main --source next --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
|
||||
env:
|
||||
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
|
||||
- run: npm ci
|
||||
- run: npm run build
|
||||
- run: npx pr-release pr --verbose --target master --source next --compact --verbose --minimize-semver-change
|
||||
- run: npx pr-release pr --verbose --target main --source next --compact --verbose --minimize-semver-change
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||
# The following will publish a prerelease to npm
|
||||
|
|
@ -29,5 +29,5 @@ jobs:
|
|||
name: Setup NPM Auth
|
||||
env:
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npx pr-release infer-prerelease --preid=next --target master --source next --verbose --publish --minimize-semver-change
|
||||
- run: npx pr-release infer-prerelease --preid=next --target main --source next --verbose --publish --minimize-semver-change
|
||||
name: Publish
|
||||
|
|
|
|||
|
|
@ -50,8 +50,8 @@ Fixes to documentation can land whenever, updates to the site are built and publ
|
|||
$ git checkout next
|
||||
$ git pull mithriljs next
|
||||
|
||||
# Splat the docs folder from next onto master
|
||||
$ git checkout master
|
||||
# Splat the docs folder from next onto main
|
||||
$ git checkout main
|
||||
$ git checkout next -- ./docs
|
||||
|
||||
# Manually ensure that no new feature docs were added
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue