-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (45 loc) · 1.59 KB
/
Copy pathversion.yml
File metadata and controls
48 lines (45 loc) · 1.59 KB
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
40
41
42
43
44
45
46
47
48
# Reusable versioning check (workflow_call). A consuming repo calls this with a
# ~6-line caller; no install, no published package. mint is checked out here and
# run against the caller's .release/ intents, so fixing the tool once + bumping
# the pin propagates to every repo.
#
# jobs:
# version:
# uses: bounded-systems/mint/.github/workflows/version.yml@<sha>
#
# `mint plan` validates every intent (fails closed on a malformed one) and
# previews the next version + changelog. It exits 0 when there are no intents.
name: version (reusable)
on:
workflow_call:
inputs:
ref:
description: "mint ref to run from (tag/sha for reproducibility)."
type: string
default: main
dir:
description: "Caller's intent directory."
type: string
default: .release
permissions:
contents: read
jobs:
version-check:
runs-on: ubuntu-latest
steps:
- name: Checkout caller
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
- name: Checkout mint
uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5
with:
repository: bounded-systems/mint
ref: ${{ inputs.ref }}
path: .mint
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5
with:
node-version: "22"
- name: Install mint deps
working-directory: .mint
run: npm ci --no-audit --no-fund
- name: mint plan (validate intents + preview next version)
run: node .mint/mint.mjs plan --dir "${{ github.workspace }}/${{ inputs.dir }}"