45 lines (43 loc) · 1.13 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
name: Releases
on:
push:
tags:
- '*'
workflow_dispatch:
inputs:
tag:
description: 'Tag'
required: true
jobs:
release:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
node-version: [16.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
permissions:
contents: write
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Get package version
id: get_version
uses: daschaa/package-version@v1.1.0
with:
path: './package.json'
- name: Use Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- run: yarn ci
- run: yarn make
- name: Create ${{ github.ref_name }} release on ${{ matrix.os }}
uses: ncipollo/release-action@v1
with:
allowUpdates: true
generateReleaseNotes: true
omitBodyDuringUpdate: true
artifacts: "out/make/**"
token: ${{ secrets.GITHUB_TOKEN }}