Add fileTypes logging (no-ci) #44
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
on: | ||
push: | ||
branches: | ||
- master | ||
name: Build and Publish | ||
jobs: | ||
build: | ||
if: "!contains(github.event.head_commit.message, 'no-ci')" | ||
name: Build & Release | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 10.17 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.17 | ||
- name: Cache node_modules | ||
id: cache-modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: Install Dependencies | ||
if: steps.cache-modules.outputs.cache-hit != 'true' | ||
run: npm install | ||
- name: Build Library | ||
run: npm run-script build | ||
- name: Deploy to NPM! 🚀 | ||
uses: Github-Actions-Community/merge-release@master | ||
uses: mikeal/merge-release@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }} | ||
deploy-demo: | ||
name: Deploy Demo | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Use Node.js 10.17 | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 10.17 | ||
- name: Cache node_modules | ||
id: cache-modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.OS }}-build-${{ hashFiles('package.json') }} | ||
- name: Install Dependencies | ||
if: steps.cache-modules.outputs.cache-hit != 'true' | ||
run: npm install | ||
- name: Build & Deploy Demo | ||
run: | | ||
npm run-script build | ||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@releases/v3 | ||
with: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
BRANCH: gh-pages # The branch the action should deploy to. | ||
FOLDER: . # The folder the action should deploy. |