Add build workflows
This commit is contained in:
36
.github/workflows/build-release.yml
vendored
Normal file
36
.github/workflows/build-release.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Build & release
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- releases/**
|
||||||
|
|
||||||
|
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.1.0
|
||||||
|
with:
|
||||||
|
author_name: Federico Grandi
|
||||||
|
author_email: fgrandi30@gmail.com
|
||||||
|
force: true
|
||||||
|
message: "[auto] Commit release files"
|
||||||
|
path: "."
|
||||||
|
pattern: "*.*"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
36
.github/workflows/build.yml
vendored
Normal file
36
.github/workflows/build.yml
vendored
Normal file
@@ -0,0 +1,36 @@
|
|||||||
|
name: Build
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches-ignore:
|
||||||
|
- releases/**
|
||||||
|
|
||||||
|
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.1.0
|
||||||
|
with:
|
||||||
|
author_name: Federico Grandi
|
||||||
|
author_email: fgrandi30@gmail.com
|
||||||
|
force: true
|
||||||
|
message: "[auto] Update compiled version"
|
||||||
|
path: lib
|
||||||
|
pattern: "*.js"
|
||||||
|
env:
|
||||||
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
Reference in New Issue
Block a user