Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release - v2.2.5 #2978

Merged
merged 13 commits into from
Sep 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
name: Warn on pushing to `main`
name: Warn on opening a PR to `release`
on:
pull_request_target:
types: [opened]
branches: [main]
branches: [release]
permissions:
issues: write
jobs:
comment:
uses: MithrilJS/infra/.github/workflows/reject-pr.yml@main
secrets: inherit
with:
correct_branch: next
31 changes: 0 additions & 31 deletions .github/workflows/pr.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
name: merge
name: Create release when pushing to `release`

on:
push:
branches: [ main ]

branches: [release]
workflow_dispatch:

concurrency: prr:deploy
concurrency: merge-release

jobs:
merge:
Expand All @@ -15,16 +14,16 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
ref: next
ref: main
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- 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 main --commit --force --clean --changelog ./docs/recent-changes.md --compact --minimize-semver-change
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- run: bash scripts/set-versioned-branch.sh release
# The following will publish the release to npm
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
name: Setup NPM Auth
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/rollback.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ jobs:
node-version: 20
- run: npm ci
- 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 main --verbose --ignore 'package*' --ignore docs/changelog.md --ignore docs/recent-changes.md
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
- run: bash scripts/set-versioned-branch.sh release
33 changes: 0 additions & 33 deletions .github/workflows/test-next-push.yml

This file was deleted.

39 changes: 31 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,41 @@
name: test
name: Test and maybe release

on:
pull_request_target:
branches: [ next ]
branches: [ main ]
push:
branches: [ main ]
workflow_dispatch:
workflow_call:

permissions:
actions: write
contents: read

jobs:
run-tests:
uses: MithrilJS/infra/.github/workflows/run-tests.yml@main
with:
all-platforms: true
test-node: true
all-versions: true
permissions:
actions: write
contents: read

publish-prerelease:
needs: run-tests
if: ${{ github.event_name == 'push' }}
concurrency: prr:pre-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: npm run build
- run: npx pr-release pr --verbose --target release --source main --compact --verbose --minimize-semver-change
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# The following will publish a prerelease to npm
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
name: Setup NPM Auth
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npx pr-release infer-prerelease --preid=next --target release --source main --verbose --publish --minimize-semver-change
name: Publish
3 changes: 0 additions & 3 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ tests/
# from changes to it in patch releases. Let's force people to finally stop using
# them.
/test-utils/

# Exclude archive of previous docs (see #2552)
/archive/
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Mithril.js

[![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)  
[![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)  
[![Zulip, join chat](https://img.shields.io/badge/zulip-join_chat-brightgreen.svg)](https://mithril.zulipchat.com/)

Expand All @@ -15,7 +15,7 @@

## What is Mithril.js?

A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.14 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.
A modern client-side JavaScript framework for building Single Page Applications. It's small (<!-- size -->9.15 KB<!-- /size --> gzipped), fast and provides routing and XHR utilities out of the box.

Mithril.js is used by companies like Vimeo and Nike, and open source platforms like Lichess 👍.

Expand Down
Binary file removed assets/16.png
Binary file not shown.
Binary file removed assets/32.png
Binary file not shown.
Binary file removed assets/48.png
Binary file not shown.
101 changes: 0 additions & 101 deletions assets/README.md

This file was deleted.

Binary file removed assets/github-logo.png
Binary file not shown.
Binary file removed assets/gitter-logo.png
Binary file not shown.
79 changes: 0 additions & 79 deletions assets/logo.svg

This file was deleted.

Binary file removed assets/open-collective-logo.png
Binary file not shown.
Loading