Skip to content

Commit

Permalink
Merge pull request #10 from openedx/waheed/add-semantic-release
Browse files Browse the repository at this point in the history
chore: add semantic release workflow
  • Loading branch information
waheedahmed authored Feb 16, 2022
2 parents 0fea994 + ef0b4e2 commit 2599774
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release CI
on:
push:
branches:
- master
- next
- beta
- alpha
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Test
run: npm run test
- name: Release
uses: cycjimmy/semantic-release-action@v2
with:
semantic_version: 16
env:
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }}

0 comments on commit 2599774

Please sign in to comment.