chore: Automate staging releases with action (#2458)

This commit is contained in:
Oliver Windall Juhl
2022-10-17 18:11:49 +02:00
committed by GitHub
parent 73db8cfca6
commit 7d77d91a3d
3 changed files with 38 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
---
---
chore: Automate staging releases with action

31
.github/workflows/staging-release.yml vendored Normal file
View File

@@ -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 }}

View File

@@ -70,7 +70,8 @@
"generate:js-client": "typedoc --options typedoc.js-client.js",
"generate:entities": "typedoc --options typedoc.entities.js",
"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": {
"@changesets/changelog-github": "^0.4.5",