This repository was archived by the owner on Mar 16, 2025. It is now read-only.
Merge pull request #37 from hedzr/dependabot/npm_and_yarn/babel/trave… #101
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: Node.js CI | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [12.x] # [8.x, 10.x, 12.x] | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: yarn install # npm install | |
- run: yarn build # npm run build --if-present | |
- run: | | |
touch docs/.vuepress/dist/.nojekyll | |
#- run: npm test | |
# env: | |
# CI: true | |
- name: Deploy | |
uses: JamesIves/github-pages-deploy-action@3.7.1 | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages # The branch the action should deploy to. | |
FOLDER: docs/.vuepress/dist # The folder the action should deploy. |