-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (47 loc) · 1.44 KB
/
Copy pathrelease.yml
File metadata and controls
54 lines (47 loc) · 1.44 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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Version to release (e.g. 0.3.0)'
required: true
type: string
permissions:
contents: write
packages: write
attestations: write
id-token: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v2
with:
version: 9
- run: pnpm install --frozen-lockfile
# Checks all four places, not just the root: both published packages and
# packages/runtime/src/version.ts (RAWSCRIPT_VERSION) must agree too.
- name: Verify version sync
run: node scripts/check-versions.mjs "${{ github.event.inputs.version }}"
- run: pnpm build
- run: pnpm sbom
- name: Attest build provenance
uses: actions/attest-build-provenance@v2
with:
subject-path: |
dist/rawscript.js
packages/cli/dist/cli.mjs
SBOM.json
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: v${{ github.event.inputs.version }}
name: rawscript v${{ github.event.inputs.version }}
generate_release_notes: true
files: |
dist/rawscript.js
packages/cli/dist/cli.mjs
SBOM.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}