diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f85fb42a3..233ff7256 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,11 @@ -name: actions -on: [push, pull_request] +name: Test + +on: + - push + - pull_request + jobs: - ci: + test: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 diff --git a/.github/workflows/rebase.yml b/.github/workflows/rebase.yml index 27d68d96b..2b6d1c638 100644 --- a/.github/workflows/rebase.yml +++ b/.github/workflows/rebase.yml @@ -1,9 +1,9 @@ # https://github.com/marketplace/actions/automatic-rebase (https://github.com/cirrus-actions/rebase) -name: Automatic Rebase +name: Rebase on: issue_comment: - types: + types: - created env: @@ -11,12 +11,10 @@ env: jobs: rebase: - name: Rebase - if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') runs-on: ubuntu-latest + if: github.event.issue.pull_request != '' && startsWith(github.event.comment.body, '/rebase') steps: - - uses: actions/checkout@master - with: - fetch-depth: 0 - - name: Automatic Rebase - uses: cirrus-actions/rebase@1.3.1 + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + - uses: cirrus-actions/rebase@1.3.1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 000000000..bbcca9115 --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,17 @@ +name: Release + +on: + push: + branches: + - master + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-node@v2 + with: + node-version: '14' + - run: yarn && yarn internal:release:next + diff --git a/lerna.json b/lerna.json index c1f1720d1..c710e34e7 100644 --- a/lerna.json +++ b/lerna.json @@ -1,5 +1,5 @@ { - "lerna": "2.7.1", + "lerna": "3.19.0", "version": "0.61.0", "npmClient": "yarn", "useWorkspaces": true diff --git a/package.json b/package.json index 49bc36f1f..5f00d0bd8 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "release:latest": "yarn prerelease && lerna publish --force-publish", "release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish", "release:experimental": "yarn prerelease && lerna publish --dist-tag experimental", + "internal:release:next": "yarn prerelease && lerna publish --dist-tag next --force-publish --conventional-commits", "serve": "cd ./site && next", "start": "npm-run-all --parallel --print-label watch serve", "test": "mocha --require ./config/babel/register.cjs ./packages/*/test/index.js",