Skip to content

Commit

Permalink
build: use semantic-release only on the master and beta branches
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrudz committed Apr 28, 2020
1 parent 6381720 commit fbe4e21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,14 @@ jobs:

release:
needs: build
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/beta'

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Check the ref
run: echo ${{ github.ref }}
- name: Semantic Release
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/semantic-release'
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 17.0.4
Expand Down
2 changes: 1 addition & 1 deletion .releaserc.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"branches": [
"master",
{ "name": "semantic-release", "prerelease": "beta" }
{ "name": "beta", "prerelease": "beta" }
],
"plugins": [
"@semantic-release/commit-analyzer",
Expand Down

0 comments on commit fbe4e21

Please sign in to comment.