chore: Automate staging releases with action (#2458)
This commit is contained in:
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
chore: Automate staging releases with action
|
||||||
@@ -0,0 +1,31 @@
|
|||||||
|
name: Staging Release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- develop
|
||||||
|
|
||||||
|
concurrency: ${{ github.workflow }}-${{ github.ref }}
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Staging Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout Repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Setup Node.js 12.x
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: 12.x
|
||||||
|
|
||||||
|
- name: Install Dependencies
|
||||||
|
run: yarn
|
||||||
|
|
||||||
|
- name: Create Release Pull Request
|
||||||
|
uses: changesets/action@v1
|
||||||
|
with:
|
||||||
|
version: yarn version:staging
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
+2
-1
@@ -70,7 +70,8 @@
|
|||||||
"generate:js-client": "typedoc --options typedoc.js-client.js",
|
"generate:js-client": "typedoc --options typedoc.js-client.js",
|
||||||
"generate:entities": "typedoc --options typedoc.entities.js",
|
"generate:entities": "typedoc --options typedoc.entities.js",
|
||||||
"release:snapshot": "changeset publish --no-git-tags --snapshot --tag snapshot",
|
"release:snapshot": "changeset publish --no-git-tags --snapshot --tag snapshot",
|
||||||
"generate:announcement": "node ./scripts/doc-change-release.js"
|
"generate:announcement": "node ./scripts/doc-change-release.js",
|
||||||
|
"version:staging": "yarn changeset pre enter staging && yarn changeset version"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@changesets/changelog-github": "^0.4.5",
|
"@changesets/changelog-github": "^0.4.5",
|
||||||
|
|||||||
Reference in New Issue
Block a user