-
Notifications
You must be signed in to change notification settings - Fork 16
45 lines (35 loc) · 940 Bytes
/
release.yml
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
name: Release
on:
workflow_dispatch:
inputs:
version:
description: 'Next Version'
required: true
env:
node_version: 20
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.release_token }}
- name: Set author in Git
run: |
git config user.name github-actions
git config user.email [email protected]
- uses: actions/setup-node@v4
with:
node-version: ${{ env.node_version }}
- run: npm ci
- name: Bump version
run: npm version ${{ github.event.inputs.version }}
- name: Push release commit
run: git push --tags origin ${{ github.ref_name }}
- uses: ncipollo/release-action@v1
with:
tag: v${{ github.event.inputs.version }}
draft: true