-
Notifications
You must be signed in to change notification settings - Fork 546
54 lines (45 loc) · 1.2 KB
/
publish-tagged.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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Publish Tagged Build
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+*"
jobs:
build:
name: "Build Changelog & Release Prod"
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
attestations: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Download all modules
run: npm ci
- name: Build project
run: |
npm run build
cat .github/.cienv >> $GITHUB_ENV
- name: Compress build output with zip
run: |
cd dist
zip -r ../monitor.zip .
cd ..
sha256sum monitor.zip
- name: Attest build provenance
id: attest_build_provenance
uses: actions/attest-build-provenance@v1
with:
subject-path: monitor.zip
- name: Create and Upload Release
uses: "marvinpinto/[email protected]"
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
prerelease: ${{ env.TX_IS_PRERELEASE }}
files: monitor.zip