next -> main

This commit is contained in:
Claudia Meadows 2024-09-24 20:59:33 -07:00
parent 33e1562fc1
commit abd7f86888
No known key found for this signature in database
GPG key ID: C86B594396786760
9 changed files with 15 additions and 17 deletions

View file

@ -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 }}

View file

@ -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

View file

@ -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

View file

@ -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 }}

View file

@ -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

View file

@ -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:

View file

@ -1,9 +1,9 @@
# Mithril.js # Mithril.js
[![npm Version](https://img.shields.io/npm/v/mithril.svg)](https://www.npmjs.com/package/mithril)   [![npm Version](https://img.shields.io/npm/v/mithril.svg)](https://www.npmjs.com/package/mithril)  
[![License](https://img.shields.io/npm/l/mithril.svg)](https://github.com/MithrilJS/mithril.js/blob/next/LICENSE)   [![License](https://img.shields.io/npm/l/mithril.svg)](https://github.com/MithrilJS/mithril.js/blob/main/LICENSE)  
[![npm Downloads](https://img.shields.io/npm/dm/mithril.svg)](https://www.npmjs.com/package/mithril)   [![npm Downloads](https://img.shields.io/npm/dm/mithril.svg)](https://www.npmjs.com/package/mithril)  
[![Build Status](https://img.shields.io/github/actions/workflow/status/MithrilJS/mithril.js/.github%2Fworkflows%2Ftest-next-push.yml)](https://www.npmjs.com/package/mithril)   [![Build Status](https://img.shields.io/github/actions/workflow/status/MithrilJS/mithril.js/.github%2Fworkflows%2Ftest-main-push.yml)](https://www.npmjs.com/package/mithril)  
[![Donate at OpenCollective](https://img.shields.io/opencollective/all/mithriljs.svg?colorB=brightgreen)](https://opencollective.com/mithriljs)   [![Donate at OpenCollective](https://img.shields.io/opencollective/all/mithriljs.svg?colorB=brightgreen)](https://opencollective.com/mithriljs)  
[![Zulip, join chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://mithril.zulipchat.com/) [![Zulip, join chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://mithril.zulipchat.com/)

View file

@ -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`)

View file

@ -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.