-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Changesets and setup pre-release and release CI (#556)
* add changeset * add stable branch too * Create selfish-avocados-report.md
- Loading branch information
Showing
9 changed files
with
990 additions
and
21 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,11 @@ | ||
{ | ||
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json", | ||
"changelog": "@changesets/cli/changelog", | ||
"commit": false, | ||
"fixed": [["nextra", "nextra-theme-docs", "nextra-theme-blog"]], | ||
"linked": [], | ||
"access": "public", | ||
"baseBranch": "core", | ||
"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,10 @@ | ||
{ | ||
"mode": "pre", | ||
"tag": "beta", | ||
"initialVersions": { | ||
"nextra": "2.0.0-beta.6", | ||
"nextra-theme-blog": "2.0.0-beta.6", | ||
"nextra-theme-docs": "2.0.0-beta.6" | ||
}, | ||
"changesets": [] | ||
} |
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,5 @@ | ||
--- | ||
"nextra": patch | ||
--- | ||
|
||
Add Changesets and setup pre-release and release CI. |
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,38 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- stable | ||
- core | ||
|
||
jobs: | ||
release: | ||
if: github.repository == 'shuding/nextra' | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: pnpm/[email protected] | ||
with: | ||
version: 7 | ||
|
||
- name: Use Node.js ${{matrix.node-version}} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{matrix.node-version}} | ||
cache: pnpm | ||
|
||
- name: Install Dependencies | ||
run: pnpm i | ||
|
||
- name: Create Release Pull Request or Publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
publish: pnpm run release | ||
version: pnpm run version | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "blog", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "docs", | ||
"version": "1.0.0", | ||
"private": true, | ||
"main": "index.js", | ||
"license": "MIT", | ||
"scripts": { | ||
|
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
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
{ | ||
"version": "0.0.0", | ||
"private": true, | ||
"scripts": { | ||
"dev": "turbo run dev", | ||
"build": "turbo run build types", | ||
"build": "turbo run build types --filter=\"nextra*\"", | ||
"types": "turbo run types", | ||
"dev:core": "turbo run dev --filter=\"nextra\"", | ||
"dev:theme-blog": "turbo run dev --filter=\"blog\" --include-dependencies", | ||
"dev:theme-docs": "turbo run dev --filter=\"swr-site\" --include-dependencies", | ||
"build:core": "pnpm run build --filter=\"nextra\"", | ||
"build:theme-blog": "pnpm run build --filter=\"nextra-theme-blog\"", | ||
"build:theme-docs": "pnpm run build --filter=\"nextra-theme-docs\"", | ||
"version-beta": "lerna version --preid beta", | ||
"publish-beta": "lerna publish from-package --canary --preid beta --pre-dist-tag beta", | ||
"version": "changeset version", | ||
"release": "changeset publish", | ||
"test": "turbo run test" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.23.2", | ||
"@edge-runtime/vm": "1.1.0-beta.11", | ||
"@tailwindcss/nesting": "^0.0.0-insiders.565cd3e", | ||
"@tailwindcss/typography": "^0.5.0", | ||
|
@@ -43,5 +43,8 @@ | |
"trailingComma": "none", | ||
"arrowParens": "avoid" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"workspaces": [ | ||
"packages/*" | ||
] | ||
} |
Oops, something went wrong.