Skip to content

ci: fix CI

ci: fix CI #3

Workflow file for this run

name: Build Packages
on:
push:
pull_request:
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
matrix:
package:
- notifier
- rc-counter
- rc-useless
name: Build ${{ matrix.package }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Build Package
run: |
yarn
yarn build packages/notifier
yarn build packages/${{ matrix.package }}
cd packages/${{ matrix.package }}
yarn pack --filename ${{ matrix.package }}.tgz
cd ../..
mv packages/${{ matrix.package }}/${{ matrix.package }}.tgz ${{ matrix.package }}.tgz
shell: bash
- uses: actions/upload-artifact@v3
with:
name: ${{ matrix.package }}-${{ github.sha }}
path: ${{ matrix.package }}.tgz