Skip to content

Semantic Release

Semantic Release #36

Workflow file for this run

name: Semantic Release
on:
workflow_dispatch:
jobs:
release:
name: Release
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3
with:
ref: 'main' # Explicitly state that you want to check out 'main'
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '20.x'
# Disabled automatic pnpm caching for now
- name: Manually install pnpm
run: npm install -g pnpm
- name: Cache pnpm modules
uses: actions/cache@v3
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- name: Install dependencies with pnpm
run: pnpm install --frozen-lockfile
- name: Run semantic release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}