-
Notifications
You must be signed in to change notification settings - Fork 3
46 lines (39 loc) · 1.14 KB
/
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
46
name: Release
on:
workflow_dispatch:
inputs:
version:
description: Version to release
required: true
jobs:
Release:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ 18 ]
env:
RELEASE_VERSION: ${{ github.event.inputs.version }}
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_PAT }} # Needed to properly trigger workflow events
- name: Prepare
run: |
git config user.name github-actions
git config user.email [email protected]
- name: Setup Node.js ${{ matrix.node }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- name: Bump version
run: |
npm run release -- --release-as ${{ env.RELEASE_VERSION }} --no-verify --skip.changelog
- name: Push tag
run: |
git push --follow-tags origin main
- name: Create release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
tag_name: v${{ env.RELEASE_VERSION }}
token: ${{ secrets.GITHUB_TOKEN }}