Skip to content

Commit

Permalink
chore: Automate staging releases with action (medusajs#2458)
Browse files Browse the repository at this point in the history
  • Loading branch information
olivermrbl authored Oct 17, 2022
1 parent 73db8cf commit 7d77d91
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/cool-rabbits-leave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---

---

chore: Automate staging releases with action
31 changes: 31 additions & 0 deletions .github/workflows/staging-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 7d77d91

Please sign in to comment.