-
Notifications
You must be signed in to change notification settings - Fork 15
50 lines (46 loc) · 1.13 KB
/
Copy pathci.yml
File metadata and controls
50 lines (46 loc) · 1.13 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
name: CI
on:
workflow_dispatch:
inputs:
signed_release:
description: Build signed and notarized macOS dry-run artifacts after verification.
type: boolean
required: false
default: false
release_tag:
description: Required for signed_release; must match package.json, with or without v.
type: string
required: false
default: ''
pull_request:
push:
branches: [main]
tags: ["*"]
permissions:
contents: read
jobs:
verify:
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: npm
- run: npm ci
- run: npm run typecheck
- run: npm run lint
- run: npm test
- run: npm run build
signed_release:
name: Signed macOS dry-run
if: github.event_name == 'workflow_dispatch' && inputs.signed_release
needs: verify
permissions:
contents: write
uses: ./.github/workflows/publish-release.yml
with:
tag: ${{ inputs.release_tag }}
ref: ${{ github.sha }}
dry_run: true
secrets: inherit