Repository navigation
61 lines (55 loc) · 1.62 KB
/
Copy pathrelease.yml
File metadata and controls
61 lines (55 loc) · 1.62 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
56
57
58
59
60
61
name: GitHub prerelease
on:
push:
tags: ["v*"]
permissions:
contents: read
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: false
jobs:
validate:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
- run: node scripts/release-check.mjs
env:
RELEASE_TAG: ${{ github.ref_name }}
test:
needs: validate
uses: ./.github/workflows/ci.yml
publish:
needs: [validate, test]
runs-on: ubuntu-latest
timeout-minutes: 15
permissions:
contents: write
env:
RELEASE_TAG: ${{ github.ref_name }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
cache: npm
- run: node scripts/release-check.mjs
- run: npm ci
- name: Pack, install into an isolated prefix, smoke test and checksum
run: node scripts/release-build.mjs
env:
RELEASE_DIR: ${{ runner.temp }}/skillwhy-release
- name: Publish verified assets as a GitHub prerelease
run: node scripts/release-publish.mjs
env:
RELEASE_DIR: ${{ runner.temp }}/skillwhy-release
GH_TOKEN: ${{ github.token }}