Skip to content

Merge pull request #113 from mifi/dependabot/npm_and_yarn/cross-spawn… #233

Merge pull request #113 from mifi/dependabot/npm_and_yarn/cross-spawn…

Merge pull request #113 from mifi/dependabot/npm_and_yarn/cross-spawn… #233

Workflow file for this run

name: Build/release
on: [push, pull_request]
jobs:
test:
runs-on: ubuntu-latest
env:
# https://github.com/actions/setup-node/issues/531
SKIP_YARN_COREPACK_CHECK: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- run: yarn --immutable
- run: cd frontend && yarn --immutable
- run: yarn tsc
- run: yarn lint
build:
runs-on: ubuntu-latest
env:
# https://github.com/actions/setup-node/issues/531
SKIP_YARN_COREPACK_CHECK: true
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
- run: yarn --immutable
- run: cd frontend && yarn --immutable
- run: yarn build
- run: yarn build:frontend
- run: patch -p1 < standalone.patch
- run: ./pkg.sh
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: Binaries
path: |
ezshare-win.zip
ezshare-macos.zip
ezshare-linux.zip
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
ezshare-win.zip
ezshare-macos.zip
ezshare-linux.zip
draft: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}