Skip to content

refactor: PRSDM-5464 setup semantic release (#127) #9

refactor: PRSDM-5464 setup semantic release (#127)

refactor: PRSDM-5464 setup semantic release (#127) #9

name: build-and-release
on:
push:
branches:
- develop
- main
jobs:
build-and-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
cache: npm
- name: Install Dependencies
run: npm ci
- name: Build Project
run: npm run build
- name: Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH_NAME: ${{ github.ref_name }}
run: npx semantic-release