Skip to content

Commit

Permalink
chore: add semantic release action
Browse files Browse the repository at this point in the history
  • Loading branch information
ajutamangdev committed Sep 12, 2024
1 parent df13576 commit 1c884d0
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/release_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ on:
push:
tags:
- 'v*.*.*'
branches:
- main

permissions:
contents: write
Expand All @@ -17,6 +19,19 @@ jobs:
- name: checkout
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'

- name: Install dependencies
run: npm install semantic-release @semantic-release/changelog @semantic-release/github @semantic-release/git

- name: Run semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release

- name: Set up Go
uses: actions/setup-go@v3
with:
Expand All @@ -29,4 +44,4 @@ jobs:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.S3Khoj_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets. }}

0 comments on commit 1c884d0

Please sign in to comment.