-
Notifications
You must be signed in to change notification settings - Fork 12
39 lines (34 loc) · 1.15 KB
/
release.yml
File metadata and controls
39 lines (34 loc) · 1.15 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
name: Release
on:
workflow_dispatch:
permissions:
contents: write
id-token: write
jobs:
publish-npm:
runs-on: ubuntu-latest
environment: npm
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
registry-url: https://registry.npmjs.org/
- name: Run Tests
run: |
npm install
npm run lint
- name: get-version
id: package-version
uses: martinbeentjes/npm-get-version-action@v1.3.1
- name: Parse changelog
id: parse-changelog
uses: schwma/parse-changelog-action@v1.2.0
with:
version: "${{ steps.package-version.outputs.current-version }}"
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: "v${{ steps.package-version.outputs.current-version }}"
body: "${{ steps.parse-changelog.outputs.body }}"
- run: npm publish --access public --provenance