Also updated bump-versions.js to NOT require utilsController.js. This is required to make sure GitHub runner can execute the script without config.js existing in root directory. To begin with the script don't particularly need anything much from the said controller.safe.fiery.me
commit
df9887386a
@ -0,0 +1,46 @@ |
||||
name: build |
||||
|
||||
on: |
||||
push: |
||||
branches: |
||||
- safe.fiery.me |
||||
paths: |
||||
- 'src/**/*.css' |
||||
- 'src/**/*.js' |
||||
- 'src/**/*.scss' |
||||
|
||||
jobs: |
||||
build: |
||||
name: Build client assets and bump v1 version string |
||||
runs-on: ubuntu-18.04 |
||||
steps: |
||||
- uses: actions/checkout@v2 |
||||
|
||||
- name: Use Node.js |
||||
uses: actions/setup-node@v1 |
||||
with: |
||||
node-version: '10.x' |
||||
|
||||
- name: Get yarn cache directory path |
||||
id: yarn-cache-dir-path |
||||
run: echo "::set-output name=dir::$(yarn cache dir)" |
||||
|
||||
- uses: actions/cache@v2 |
||||
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) |
||||
with: |
||||
path: ${{ steps.yarn-cache-dir-path.outputs.dir }} |
||||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} |
||||
restore-keys: | |
||||
${{ runner.os }}-yarn- |
||||
|
||||
- name: Install dependencies |
||||
run: yarn install |
||||
|
||||
- name: yarn build |
||||
run: yarn build |
||||
|
||||
- uses: stefanzweifel/git-auto-commit-action@v4 |
||||
with: |
||||
commit_message: Rebuilt client assets and bumped v1 version string |
||||
env: |
||||
CI: true |
Loading…
Reference in new issue