-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3244725
commit 73e2a1c
Showing
6 changed files
with
186 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": false, | ||
"commit": false, | ||
"linked": [], | ||
"access": "restricted", | ||
"baseBranch": "main", | ||
"fixed": [["@rslib/*"]], | ||
"___experimentalUnsafeOptions_WILL_CHANGE_IN_PATCH": { | ||
"onlyUpdatePeerDependentsWhenOutOfRange": true, | ||
"updateInternalDependents": "always" | ||
}, | ||
"updateInternalDependencies": "patch", | ||
"ignore": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: Release Nightly | ||
|
||
on: | ||
workflow_dispatch: | ||
# Nightly release disabled | ||
# schedule: | ||
# 00:00 AM Beijing Time. | ||
# - cron: "0 16 * * *" | ||
|
||
permissions: | ||
# To publish packages with provenance | ||
id-token: write | ||
|
||
jobs: | ||
release: | ||
name: Release Nightly | ||
if: github.repository == 'web-infra-dev/rslib' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 10 | ||
|
||
- name: Install Pnpm | ||
run: corepack enable | ||
|
||
- name: Setup Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Release | ||
uses: web-infra-dev/actions@v2 | ||
with: | ||
version: nightly | ||
branch: main | ||
type: 'release' | ||
tools: 'changeset' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
REF: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Release Pull Request | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: choice | ||
description: 'Release Type (next, beta, alpha, latest)' | ||
required: true | ||
default: 'latest' | ||
options: | ||
- next | ||
- beta | ||
- alpha | ||
- latest | ||
|
||
jobs: | ||
release: | ||
name: Create Release Pull Request | ||
runs-on: ubuntu-latest | ||
if: github.repository == 'web-infra-dev/rslib' | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@master | ||
with: | ||
# This makes Actions fetch only one branch to release | ||
fetch-depth: 10 | ||
|
||
- name: Install Pnpm | ||
run: corepack enable | ||
|
||
- name: Setup Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
||
- name: Install Dependencies | ||
run: pnpm install --ignore-scripts | ||
|
||
- name: Create Release Pull Request | ||
uses: web-infra-dev/actions@v2 | ||
with: | ||
# this expects you to have a script called release which does a build for your packages and calls changeset publish | ||
version: ${{ github.event.inputs.version || 'latest' }} | ||
versionNumber: 'auto' | ||
type: 'pull request' | ||
tools: 'changeset' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
REF: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: choice | ||
description: 'Release Version (next, beta, alpha, latest)' | ||
required: true | ||
default: 'next' | ||
options: | ||
- next | ||
- beta | ||
- alpha | ||
- latest | ||
branch: | ||
description: 'Release Branch (confirm release branch)' | ||
required: true | ||
default: 'main' | ||
issue_comment: | ||
types: [created] | ||
|
||
permissions: | ||
id-token: write | ||
|
||
jobs: | ||
release: | ||
name: Release | ||
if: github.repository == 'web-infra-dev/rslib' && github.event_name == 'workflow_dispatch' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 25 | ||
|
||
- name: Install Pnpm | ||
run: corepack enable | ||
|
||
- name: Setup Node.js 18 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '18' | ||
cache: 'pnpm' | ||
|
||
- name: Install Dependencies | ||
run: pnpm install | ||
|
||
- name: Release | ||
uses: web-infra-dev/actions@v2 | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
branch: ${{ github.event.inputs.branch }} | ||
type: 'release' | ||
tools: 'changeset' | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.REPO_SCOPED_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
REPOSITORY: ${{ github.repository }} | ||
REF: ${{ github.ref }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.