-
-
Notifications
You must be signed in to change notification settings - Fork 8
40 lines (30 loc) · 785 Bytes
/
release.yml
File metadata and controls
40 lines (30 loc) · 785 Bytes
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
name: NPM Release
on:
push:
tags:
- '*'
permissions:
id-token: write # Required for OIDC
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Update npm
run: npm install -g npm@latest
- name: npm install
run: npm install
- name: npm run build
run: npm run build
- name: npm publish
run: npm publish --provenance --access public
- name: Generate CHANGELOG
run: grep -Pzo "### ${{ github.ref_name }}(?s).*?(?=###)" CHANGELOG.md > RELEASE
- name: Github Release
uses: softprops/action-gh-release@v2
with:
body_path: RELEASE