fix: make beginStroke event cancelable #190
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: "tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
Test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node_version: ['lts/*', '*'] | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node_version }} | |
check-latest: true | |
- name: Install Dependencies | |
run: yarn | |
- name: Run Tests π©π½βπ» | |
run: yarn run test | |
Build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
check-latest: true | |
- name: Install Dependencies | |
run: yarn | |
- name: Build 𧱠| |
run: yarn run build | |
Lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
check-latest: true | |
- name: Install Dependencies | |
run: yarn | |
- name: Lint β¨ | |
run: yarn run lint | |
Release: | |
needs: [Test, Build, Lint] | |
if: | | |
github.ref == 'refs/heads/master' && | |
github.event.repository.fork == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@v2 | |
- name: Install Node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 'lts/*' | |
check-latest: true | |
- name: Install Dependencies | |
run: yarn | |
- name: Build ποΈ | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
export SEMANTIC_RELEASE_NEXT_VERSION=$(npx semantic-release --no-ci --dry-run | grep -oP 'The next release version is \K[0-9]+\.[0-9]+\.[0-9]+') | |
echo "Next Version: $SEMANTIC_RELEASE_NEXT_VERSION" | |
yarn run build | |
if ! git diff --quiet; then | |
git config --global user.email "<>" | |
git config --global user.name "GitHub Actions" | |
git commit -am "π docs [skip ci]" | |
else | |
echo "Nothing to commit" | |
fi | |
- name: Release π | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: npx semantic-release |