Skip to content

feat: use semantic-release for library #1

feat: use semantic-release for library

feat: use semantic-release for library #1

Workflow file for this run

name: Release
on:
push:
branches:
- main
- feat/automate-releases
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # needed for semantic-release
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Semantic Release and plugins
run: |
npm install -g semantic-release \
@semantic-release/git \
@semantic-release/changelog \
@semantic-release/exec \
@semantic-release/github \
@semantic-release/commit-analyzer \
@semantic-release/release-notes-generator
- name: Run Semantic Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: semantic-release