Bump ip from 1.1.5 to 1.1.9 (#98) #89
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [master] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
# First job, build package | |
build: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- name: Clone repo | |
uses: actions/checkout@v2 | |
# Setup node environment | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v2 | |
with: | |
node-version: "14" | |
# Install node modules | |
- name: Install node modules | |
run: | | |
yarn install | |
# Build Package | |
- name: Build package | |
run: | | |
export NODE_OPTIONS=--max_old_space_size=4096 | |
yarn build | |
# Copy into examples dir | |
- name: Copy into examples | |
run: | | |
cp ./dist/diglettk.js ./docs/examples/diglettk.js | |
# Create template folder | |
- name: Create template folder | |
run: | | |
mkdir templates | |
# Clone template | |
- name: Clone docdash template | |
uses: actions/checkout@v2 | |
with: | |
repository: clenemt/docdash | |
path: ./templates/ | |
# Generate docs | |
- name: Generate docs | |
run: | | |
yarn generate-docs | |
# Commit Package and Docs | |
- name: Commit package and docs | |
run: | | |
git config --global user.name 'Mattia-gh-action' | |
git config --global user.email '[email protected]' | |
git commit --allow-empty -am "Automated package and docs" | |
git push |