-
-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (43 loc) · 1.11 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
47
48
49
50
51
52
53
name: release
on:
push:
branches:
- master
concurrency:
group: release-${{ github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
jobs:
draft_release:
permissions:
contents: write # Allows this job to create releases
strategy:
fail-fast: true
matrix:
# os: [macos-latest, ubuntu-latest, windows-latest]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
# cache: 'npm'
- run: npm i
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
- name: Get Package Version
id: get-version
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_ENV
- run: npm run build
- run: zip -r ${{ env.version }}.zip dist
- name: GH Release
uses: softprops/action-gh-release@v0.1.15
with:
tag_name: ${{ env.version }}
name: ${{ env.version }}
draft: true
files: ${{ env.version }}.zip