-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (51 loc) · 1.23 KB
/
Copy pathrelease.yml
File metadata and controls
58 lines (51 loc) · 1.23 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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Exact SemVer to publish (for example 2.0.2)
required: true
type: string
channel:
description: npm dist-tag and GitHub Release channel
required: true
default: latest
type: choice
options:
- latest
- next
concurrency:
group: release
cancel-in-progress: false
jobs:
ci:
name: CI
uses: ./.github/workflows/ci.yml
permissions:
contents: read
secrets: inherit
release:
name: Publish npm and GitHub Release
needs: ci
runs-on: ubuntu-latest
environment: npm
permissions:
contents: write
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: https://registry.npmjs.org
package-manager-cache: false
- name: Release
uses: ./.github/actions/release
with:
version: ${{ inputs.version }}
channel: ${{ inputs.channel }}
github_token: ${{ secrets.GITHUB_TOKEN }}