Skip to content

Merge pull request #61 from coder-xiaomo/master #31

Merge pull request #61 from coder-xiaomo/master

Merge pull request #61 from coder-xiaomo/master #31

Workflow file for this run

name: Build
on:
push:
branches:
- master
env:
node_version: "12.x"
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v1
with:
node-version: ${{ env.node_version }}
- name: Cache node_modules
uses: actions/cache@v1
with:
path: node_modules
key: ${{ runner.OS }}-node_modules-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-node_modules-
- name: Install JS dependencies
run: ls package-lock.json && npm install || yarn install
- name: Build
run: npm run build
- name: Commit and push distified version to master
uses: stefanzweifel/[email protected]
with:
commit_message: 'Update distified version'
file_pattern: 'dist/index.js'