Skip to content

Update package.yml

Update package.yml #45

Workflow file for this run

name: Build Release
on:
push:
branches:
- master # master 分支 push 时触发工作流
jobs:
release: # 打包任务
runs-on: ${{matrix.os}} # 在 windows 系统中运行
strategy:
fail-fast: false
matrix:
os: [windows-latest, macos-10.15, ubuntu-18.04]
node-version: ['16.20.2']
steps:
# 下载仓库代码到工作流机器中
- name : Check out git repository
uses: actions/checkout@v2
# step2: install node env
- name: Install Node.js
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Install system deps
if: matrix.os == 'ubuntu-18.04'
run: |
sudo apt-get install --no-install-recommends -y icnsutils graphicsmagick xz-utils
sudo apt-get update
sudo snap install snapcraft --classic
- name: Yarn install & Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
npm install -g yarn
yarn cache clean
yarn
npm run release