chore: Add sematic releases

This commit is contained in:
Deepesh Garg
2022-04-18 10:38:22 +05:30
parent 4b2521c9f3
commit 41249c57c4
2 changed files with 50 additions and 0 deletions

25
.github/workflows/release.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Generate Semantic Release
on:
push:
branches:
- test-release
jobs:
release:
name: Release
runs-on: ubuntu-18.04
steps:
- name: Checkout Entire Repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup Node.js v14
uses: actions/setup-node@v2
with:
node-version: 14
- name: Setup dependencies
run: |
npm install @semantic-release/git @semantic-release/exec --no-save
- name: Create Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release