Skip to content

See #423 (#424)

See #423 (#424) #57

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: master
on:
push:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- macos-latest
- windows-latest
- ubuntu-latest
node-version:
- 17
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache node_modules
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ matrix.os }}-${{ matrix.node-version }}-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
env:
cache-name: node-modules
- run: sudo apt-get update -y && sudo apt-get install --no-install-recommends -y libopenjp2-tools rpm libarchive-tools
name: Install Linux Dependencies
if: (startsWith(matrix.os, 'ubuntu'))
- run: yarn install --frozen-lockfile
- run: yarn dist --publish onTagOrDraft
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Upload Build
uses: actions/[email protected]
with:
name: ${{ matrix.os }}-${{ matrix.node-version }}
path: ./dist