Skip to content

Commit

Permalink
Merge pull request #205 from Synthetixio/dev
Browse files Browse the repository at this point in the history
ci: release beta versions automatically
  • Loading branch information
drptbl authored Aug 25, 2021
2 parents 2a52e03 + 4bd42df commit d2f1c12
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Release CI

on:
push:
branches: [master]
workflow_dispatch:
inputs:
version:
Expand Down Expand Up @@ -69,6 +71,7 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- name: Release ${{ github.event.inputs.version }}
if: github.event_name == 'workflow_dispatch'
run: |
git reset --hard
npm run release:${{ github.event.inputs.version }} --ci
Expand All @@ -79,3 +82,16 @@ jobs:
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GIT_SIGNING_KEY: ${{ secrets.GIT_SIGNING_KEY }}

- name: Release patch:beta
if: github.event_name == 'push'
run: |
git reset --hard
npm run release:patch --ci --preRelease=beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_USER: ${{ secrets.GIT_USER }}
GIT_EMAIL: ${{ secrets.GIT_EMAIL }}
GPG_KEY: ${{ secrets.GPG_KEY }}
GIT_SIGNING_KEY: ${{ secrets.GIT_SIGNING_KEY }}

0 comments on commit d2f1c12

Please sign in to comment.