forked from stakwork/sphinx-nav-fiber
-
Notifications
You must be signed in to change notification settings - Fork 0
29 lines (28 loc) · 829 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
name: Generate Build Files and Update version #
on:
push:
branches:
- master
jobs:
yarn-build-and-update-version:
name: build
runs-on:
- ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Build and Version
run: |
git config user.name 'Github Actions'
git config user.email [email protected]
npm version patch -m "ci: bump version to %s"
git push --follow-tags
CI=false yarn install && CI=false yarn run build
git add ./build -f
git commit -m "ci: automatic build fixes" || echo -n
git push --set-upstream origin master