-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (39 loc) · 1.09 KB
/
buildAndRelease.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
name: Generate Build Files and Update version #
on:
push:
branches:
- master
jobs:
npm-build-and-update-version:
name: build
runs-on:
- ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20
- name: Run Build
working-directory: ./app
run: |
git config user.name 'Github Actions'
git config user.email [email protected]
yarn install
yarn run build
git add ./dist -f
git commit -m "ci: automatic build" || echo -n
git push --set-upstream origin master
- name: Pull Latest Changes
uses: actions/checkout@v2
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
- name: Create New Release
uses: rymndhng/release-on-push-action@master
with:
bump_version_scheme: patch
use_github_release_notes: true