-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (34 loc) · 1009 Bytes
/
build.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
name: Build and Release
on:
push:
branches:
- main
paths-ignore:
- 'README.md'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Set up Node.js
uses: actions/setup-node@v4
- name: Install dependencies
run: npm ci
- name: Bump version
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
npm version patch -m "Bump to %s"
git push
- name: Build app
run: npm run build
- name: Get version
id: packagejson
uses: martinbeentjes/[email protected]
- name: Upload Release
uses: ncipollo/[email protected]
with:
artifacts: 'mui-${{ steps.packagejson.outputs.current-version }}.tar.gz'
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.packagejson.outputs.current-version }}