-
Notifications
You must be signed in to change notification settings - Fork 1.4k
55 lines (48 loc) · 1.54 KB
/
Copy pathrelease-loop.yml
File metadata and controls
55 lines (48 loc) · 1.54 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
49
50
51
52
53
54
55
name: Release loop (umbrella CLI)
on:
push:
tags:
- 'loop-v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to publish (e.g. loop-v0.1.0)'
required: true
type: string
permissions:
contents: read
id-token: write
jobs:
test-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event_name == 'workflow_dispatch' && format('refs/tags/{0}', github.event.inputs.tag) || github.ref }}
- uses: actions/setup-node@v7
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
cache: 'npm'
cache-dependency-path: tools/loop/package-lock.json
- name: Ensure npm supports trusted publishing (OIDC)
run: |
npm install -g npm@latest
npm install -g sigstore
- name: Build sibling tools + umbrella
run: |
(cd tools/readiness-core && npm ci && npm run build)
(cd tools/loop-audit && npm ci && npm run build)
(cd tools/loop-sync && npm ci && npm run build)
(cd tools/loop-init && npm ci && npm run build)
(cd tools/loop-cost && npm ci && npm run build)
cd tools/loop
npm ci
npm run build
npm test
- name: Publish to npm
working-directory: tools/loop
run: npm publish --access public --provenance
env:
# OIDC trusted publishing — do not set NODE_AUTH_TOKEN (it overrides OIDC)
NPM_CONFIG_PROVENANCE: "true"