Update dependency eslint-config-prettier to v10 (#162) #254
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: | |
push: | |
branches: | |
- master | |
tags: | |
- v*.*.* | |
pull_request: | |
branches: | |
- master | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [macos, windows, ubuntu] | |
fail-fast: false | |
runs-on: "${{ matrix.os }}-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: volta-cli/action@v4 | |
# https://github.com/actions/runner/issues/2958 | |
- if: matrix.os == 'macos' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
- if: matrix.os == 'macos' | |
run: pip install setuptools | |
- run: npm ci | |
- run: npm run lint | |
- run: npm run format:check | |
- run: npm run package | |
release: | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') | |
needs: build | |
strategy: | |
matrix: | |
os: [macos, windows] | |
fail-fast: false | |
runs-on: "${{ matrix.os }}-latest" | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: volta-cli/action@v4 | |
# https://github.com/actions/runner/issues/2958 | |
- if: matrix.os == 'macos' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.x | |
- if: matrix.os == 'macos' | |
run: pip install setuptools | |
- run: npm ci | |
- run: npm version --no-git-tag-version "${{ github.ref_name }}" | |
- run: npm run make | |
- uses: softprops/action-gh-release@v2 | |
with: | |
draft: true | |
files: | | |
out/make/**/*.exe | |
out/make/**/*.dmg |