Suggested amendments

This commit is contained in:
James Forbes 2022-03-21 22:13:19 +11:00 committed by Stephan Hoyer
parent f3c59665b1
commit 65cf256775
5 changed files with 92 additions and 3965 deletions

View file

@ -1,43 +1,44 @@
name: merge name: merge
on: on:
push: push:
branches: [ main ] branches: [ main ]
workflow_dispatch: workflow_dispatch:
concurrency: prr:deploy concurrency: prr:deploy
jobs: jobs:
merge: merge:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [16.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
ref: 'next' ref: 'next'
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- run: npm run build --if-present - run: npm run build --if-present
- run: npx pr-release merge --target main --source next --commit --force --clean --changelog --compact - run: npm run build:docs
env: - run: npx pr-release merge --target main --source next --commit --force --clean --changelog --compact --out ./docs/recent-changes.md
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
# The following will publish the release to npm # The following will publish the release to npm
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
name: Setup NPM Auth name: Setup NPM Auth
env: env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm publish - run: npm publish
name: Publish name: Publish

View file

@ -1,38 +1,38 @@
name: pr name: pr
on: on:
push: push:
branches: [ next ] branches: [ next ]
workflow_dispatch: workflow_dispatch:
concurrency: prr:pre-release concurrency: prr:pre-release
jobs: jobs:
pr: pr:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [16.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- run: npm run build --if-present - run: npm run build --if-present
- run: npx pr-release pr --verbose --target main --source next --compact --verbose - run: npx pr-release pr --verbose --target main --source next --compact --verbose
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
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
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 --verbose --publish - run: npx pr-release infer-prerelease --preid=next --verbose --publish
name: Publish name: Publish

View file

@ -1,31 +1,31 @@
name: rollback name: rollback
on: on:
workflow_dispatch: workflow_dispatch:
concurrency: prr:deploy concurrency: prr:deploy
jobs: jobs:
pr: pr:
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
matrix: matrix:
node-version: [16.x] node-version: [16.x]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
with: with:
ref: 'next' ref: 'next'
fetch-depth: 0 fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }} - name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2 uses: actions/setup-node@v3
with: with:
node-version: ${{ matrix.node-version }} node-version: ${{ matrix.node-version }}
cache: 'npm' cache: 'npm'
- run: npm ci - run: npm ci
- run: npm run build --if-present - run: npm run build --if-present
- run: npx pr-release rollback --verbose --target main --source next --verbose --ignore 'package*' --ignore changelog.md - run: npx pr-release rollback --verbose --target main --source next --verbose --ignore 'package*' --ignore changelog.md
env: env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

View file

@ -4,7 +4,7 @@ Describes how we do releases of Mithril.js
# Mithril.js Release Processes # Mithril.js Release Processes
Mithril's release process is automated by [pr-release]. pr-release is maintained by a long time mithril.js community member [@JAForbes](https://github.com/JAForbes). Mithril.js' release process is automated by [pr-release]. pr-release is maintained by a long time Mithril.js community member [@JAForbes](https://github.com/JAForbes).
pr-release handles the following: pr-release handles the following:
@ -26,7 +26,7 @@ If you do not have permissions, the maintainer will set the label on your behalf
## Changelog ## Changelog
There are two changelogs in the mithril project There are two changelogs in the Mithril.js project
- `docs/changelog.md` a hand written curated reflection of changes to the codebase - `docs/changelog.md` a hand written curated reflection of changes to the codebase
- `docs/release.md` an automatically prepended log of changes, managed by pr-release - `docs/release.md` an automatically prepended log of changes, managed by pr-release

3896
package-lock.json generated

File diff suppressed because it is too large Load diff