Need to include event in action #20
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: Publish | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node: [12] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Nodejs ${{ matrix.node }} | |
uses: actions/setup-node@v1 | |
- name: Install dependencies | |
env: | |
CI: true | |
run: npm install | |
- name: Test | |
run: npm test | |
- name: Build | |
run: npm run build | |
- name: Publish | |
if: success() | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release | |
- name: Build the new version for the demo | |
if: success() | |
run: npm run build | |
- name: Deploy - https://draggable.github.io/formeo/ | |
if: success() | |
env: | |
GH_PAT: ${{ secrets.GH_TOKEN }} | |
BUILD_DIR: demo/ | |
uses: maxheld83/[email protected] |