Bump eslint from 8.55.0 to 8.56.0 (#280) #124
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 demo | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
jobs: | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run build | |
- name: Create temporary gh-pages-dist dir | |
run: |- | |
mkdir gh-pages-dist | |
cp -R demo gh-pages-dist/demo/ | |
cp -R dist gh-pages-dist/dist/ | |
- uses: actions/upload-pages-artifact@v1 | |
with: | |
path: gh-pages-dist | |
Deploy: | |
needs: Build | |
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment | |
permissions: | |
pages: write # to deploy to Pages | |
id-token: write # to verify the deployment originates from an appropriate source | |
# Deploy to the github-pages environment | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }}demo/index.html | |
# Specify runner + deployment step | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v1 |