32 lines
591 B
YAML
32 lines
591 B
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
paths:
|
|
- src/**
|
|
- .github/workflows/build.yml
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
build:
|
|
name: Build compiled JS version
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: 12.x
|
|
|
|
- run: npm install
|
|
|
|
- run: npm run build
|
|
|
|
- uses: EndBug/add-and-commit@v4
|
|
with:
|
|
message: '[auto] build: update compiled version'
|
|
add: lib
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|