-
-
Notifications
You must be signed in to change notification settings - Fork 148
39 lines (34 loc) · 1.1 KB
/
standard-version.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
39
name: standard-version
on:
# Allow to be manually dispatched
workflow_dispatch:
inputs:
options:
description: 'standard-version options'
# Allow to be run via webhooks (Dojo will use this)
repository_dispatch:
types: [standard-version]
jobs:
standard-version:
runs-on: ubuntu-latest
steps:
# Checkout action retreive the source (git clone)
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed to retreive all git history
token: ${{ secrets.APP_GITHUB_TOKEN }}
# Enable corepack, note that nodejs is already installed
- run: corepack enable
# Setup pnpm with cache
- uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
# Run "standard-version", which may create a new tag
- run: |
git config user.name digisquad-bot
git config user.email [email protected]
pnpm dlx standard-version ${{ github.event.inputs.options }}
git push --follow-tags origin main
env:
GITHUB_TOKEN: ${{ secrets.APP_GITHUB_TOKEN }}