Skip to content
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
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/config@2.3.0/schema.json",
"changelog": [
"@svitejs/changesets-changelog-github-compact",
{
"repo": "FormidableLabs/react-live"
}
],
"access": "public",
"baseBranch": "master"
}
33 changes: 33 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: react-live Release Workflow

on:
push:
branches:
- master

jobs:
release:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "yarn"

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build packages
run: yarn run build

- name: PR or Publish
id: changesets
uses: changesets/action@v1
with:
version: yarn run version
publish: yarn changeset publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
"install:docs": "yarn --cwd website install",
"start:docs": "yarn --cwd website start",
"build:docs": "yarn --cwd website build",
"format:docs": "prettier --write docs"
"format:docs": "prettier --write docs",
"changeset": "changeset",
"version": "yarn changeset version"
},
"dependencies": {
"prism-react-renderer": "^1.3.1",
Expand All @@ -35,6 +37,7 @@
"@babel/plugin-transform-runtime": "^7.15.0",
"@babel/preset-env": "^7.15.0",
"@babel/preset-react": "^7.14.5",
"@changesets/cli": "^2.26.1",
"@rollup/plugin-babel": "^5.3.0",
"@rollup/plugin-commonjs": "^20.0.0",
"@rollup/plugin-node-resolve": "^13.0.4",
Expand All @@ -43,6 +46,7 @@
"@storybook/builder-webpack5": "^6.5.16",
"@storybook/manager-webpack5": "^6.5.16",
"@storybook/react": "^6.4.13",
"@svitejs/changesets-changelog-github-compact": "^1.1.0",
"@types/react": "^17.0.38",
"babel-jest": "^27.0.6",
"babel-loader": "^8.2.2",
Expand Down
Loading