Skip to content

Commit

Permalink
ci: add automated release
Browse files Browse the repository at this point in the history
  • Loading branch information
sinedied committed Jan 8, 2021
1 parent 85f5361 commit 654caec
Show file tree
Hide file tree
Showing 3 changed files with 24,270 additions and 9,162 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: release
on:
workflow_dispatch:
repository_dispatch:
types: [release]

jobs:
release:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- uses: actions/setup-node@v1
with:
node-version: 14
- run: npm ci
env:
CI: true
- run: npx semantic-release
if: success()
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# Need owner/admin account to bypass branch protection
GIT_COMMITTER_NAME: ci-rebot
GIT_COMMITTER_EMAIL: [email protected]
Loading

0 comments on commit 654caec

Please sign in to comment.