Merge pull request #226 from muffinista/svelte-5 #282
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 release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
env: | |
# https://stackoverflow.com/questions/77251296/distutils-not-found-when-running-npm-install | |
PYTHON: 3.11 | |
steps: | |
- name: Install ubuntu requirements | |
if: ${{ matrix.os == 'ubuntu-latest' }} | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -y libx11-dev libxss-dev icnsutils graphicsmagick libappindicator1 libxtst-dev | |
# https://github.com/nodejs/node-gyp/issues/2869 | |
# - name: Hack node-gyp | |
# if: ${{ matrix.os != 'windows-latest' }} | |
# run: | | |
# sudo -H python3 -m pip install packaging | |
- uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: '.nvmrc' | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Specify MSVS version | |
if: ${{ matrix.os == 'windows-latest' }} | |
shell: powershell | |
run: | | |
echo "GYP_MSVS_VERSION=2022" >> $env:GITHUB_ENV | |
- run: npm ci | |
- run: npm rebuild | |
- name: Release | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GITHUB_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
run: npm run release |