Skip to content

Commit

Permalink
build: semantic-release config
Browse files Browse the repository at this point in the history
  • Loading branch information
DamianOsipiuk committed Jul 28, 2021
1 parent 11da7f0 commit 3a363fd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
push:
branches:
- main
- beta
pull_request:

jobs:
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:

publish:
# publish only when merged in master on original repo, not on PR
if: github.repository == 'DamianOsipiuk/vue-query' && github.ref == 'refs/heads/main'
if: github.repository == 'DamianOsipiuk/vue-query' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta')
needs: [verify, commitlint]
runs-on: ubuntu-latest

Expand All @@ -57,7 +58,7 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npx semantic-release@17 --branches main
- run: npx semantic-release@17
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTOMATION_TOKEN}}
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
7 changes: 7 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"branches": [
"main",
{ "name": "beta", "prerelease": true },
{ "name": "alpha", "prerelease": true }
]
}

1 comment on commit 3a363fd

@vercel
Copy link

@vercel vercel bot commented on 3a363fd Jul 28, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.