create new defineable methods to customize behaviour of NestedStateMachine #378
Workflow file for this run
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 | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: 14.5.0 | |
- name: Compile TypeScript | |
run: npm install && npm run build | |
deploy: | |
runs-on: ubuntu-latest | |
needs: [build] | |
if: github.ref == 'refs/heads/master' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Node.js | |
uses: actions/setup-node@master | |
with: | |
node-version: 14.5.0 | |
- name: Compile TypeScript | |
run: npm install && npm run build | |
- name: Publish if version has been updated | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} |