Update package-lock #243
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: Release | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
release: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [macos-latest, ubuntu-latest, windows-latest] | |
steps: | |
- name: Check out | |
uses: actions/checkout@v1 | |
- name: Set tag | |
id: refs | |
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/} | |
shell: bash | |
- name: Setup Node.js | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 14 | |
- name: Setup Python | |
if: matrix.os == 'macos-latest' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install Linux canvas deps | |
if: matrix.os == 'ubuntu-latest' | |
run: sudo apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev | |
- name: Install Windows canvas deps | |
if: matrix.os == 'windows-latest' | |
run: | | |
choco install -y gtk-runtime libjpeg-turbo 7zip curl visualstudio2019-workload-vctools | |
# npm config set msvs_version 2019 | |
curl -LO http://ftp.gnome.org/pub/GNOME/binaries/win64/gtk+/2.22/gtk+-bundle_2.22.1-20101229_win64.zip | |
7z x gtk+-bundle_2.22.1-20101229_win64.zip -y -oC:\GTK | |
- name: Install macOS canvas deps | |
if: matrix.os == 'macos-latest' | |
run: brew install pkg-config cairo pango libpng jpeg giflib librsvg | |
- name: Bump version | |
run: npm --no-git-tag-version version ${{ steps.refs.outputs.tag }} | |
- name: Build & release | |
uses: samuelmeuli/[email protected] | |
with: | |
github_token: ${{ secrets.github_token }} | |
release: true |