-
Notifications
You must be signed in to change notification settings - Fork 28
38 lines (32 loc) · 983 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
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 }}