Add off()
to unlisten events
#1063
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: CI | |
on: | |
pull_request: | |
release: | |
types: [released] | |
workflow_dispatch: | |
inputs: | |
deploy: | |
required: false | |
type: boolean | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
# https://github.com/npm/cli/issues/3847 | |
node-version: '16.1.0' | |
- run: npm install | |
- run: npm run setup | |
- run: npm run test --workspaces | |
- run: npm run coverage | |
- uses: coverallsapp/github-action@master | |
continue-on-error: true | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: ./coverage/lcov.info | |
deploy: | |
needs: test | |
if: startsWith(github.ref, 'refs/tags/') || github.event.inputs.deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '16.1.0' | |
- run: npm install | |
- run: npm run setup | |
- uses: peaceiris/actions-gh-pages@v2 | |
env: | |
PERSONAL_TOKEN: ${{ secrets.PERSONAL_TOKEN }} | |
PUBLISH_BRANCH: gh-pages | |
PUBLISH_DIR: ./packages/tweakpane/docs | |
with: | |
commitMessage: 'Deploy to GitHub Pages (Actions: ${{ github.sha }})' |