-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (46 loc) · 1.38 KB
/
release.yml
File metadata and controls
50 lines (46 loc) · 1.38 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: Release
on:
push:
tags:
- 'v*.*.*'
permissions:
contents: write
id-token: write
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
RELEASEBOX_REF: v0.1.0
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: actions/setup-node@v5
with:
node-version: 22
registry-url: https://registry.npmjs.org
- uses: pnpm/action-setup@v4
with:
version: 10
run_install: false
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Install ReleaseBox
run: |
set -euo pipefail
git clone --depth 1 --branch "$RELEASEBOX_REF" https://github.com/rogerchappel/releasebox.git /tmp/releasebox
npm --prefix /tmp/releasebox ci
npm --prefix /tmp/releasebox run build
- name: ReleaseBox readiness check
run: node /tmp/releasebox/bin/releasebox.js check .
- name: Run release checks
run: pnpm run release:check
- name: Build package
run: npm pack
- name: Generate release notes
run: node /tmp/releasebox/bin/releasebox.js notes . > RELEASE_NOTES.md
- name: Create GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: gh release create "${GITHUB_REF_NAME}" --notes-file RELEASE_NOTES.md *.tgz