Skip to content

Commit

Permalink
fix: create alpha release
Browse files Browse the repository at this point in the history
  • Loading branch information
mirceanis committed Oct 13, 2022
1 parent 28ec96e commit 1d5d5f2
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- 'master'
- 'alpha'
jobs:
build-test-publish:
runs-on: ubuntu-18.04
Expand All @@ -24,12 +25,12 @@ jobs:

- name: "Setup git coordinates"
run: |
git config user.name uport-automation-bot
git config user.email devops@uport.me
git config user.name ${{ secrets.GH_USER }}
git config user.email ${{ secrets.GH_EMAIL }}
- name: "Run semantic-release"
env:
GH_TOKEN: ${{secrets.GH_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
if: github.ref == 'refs/heads/master'
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/alpha'
run: yarn run release
36 changes: 27 additions & 9 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,33 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
["@semantic-release/changelog", {
"changelogFile": "CHANGELOG.md"
}],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/npm",
["@semantic-release/git", {
"assets": ["CHANGELOG.md", "docs", "package.json", "yarn.lock"],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"docs",
"package.json",
"yarn.lock"
],
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"@semantic-release/github"
],
"branch": "master"
}
"branches": [
"master",
"next",
{
"name": "alpha",
"prerelease": true
}
]
}

0 comments on commit 1d5d5f2

Please sign in to comment.