35 lines
756 B
YAML
35 lines
756 B
YAML
name: Build
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- dist
|
|
|
|
jobs:
|
|
build:
|
|
name: Build compiled JS version
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@master
|
|
|
|
- name: Set up Node.js
|
|
uses: actions/setup-node@master
|
|
with:
|
|
node-version: 12.0.0
|
|
|
|
- name: Install dependencies
|
|
run: npm install
|
|
|
|
- name: Compile TypeScript into compressed JavaScript
|
|
run: npm run build
|
|
|
|
- name: Commit changes
|
|
uses: EndBug/add-and-commit@v2.2.0
|
|
with:
|
|
force: true
|
|
message: "[auto] Update compiled version"
|
|
path: lib
|
|
pattern: "*.js"
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|