2022-02-13 23:28:16 -08:00
|
|
|
name: Build
|
2021-05-13 18:06:59 -07:00
|
|
|
|
|
|
|
on: push
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ${{ matrix.os }}
|
|
|
|
|
2023-03-28 18:40:33 -07:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2021-05-13 18:06:59 -07:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Check out Git repository
|
2023-03-24 13:57:34 -07:00
|
|
|
uses: actions/checkout@v3
|
2021-05-13 18:06:59 -07:00
|
|
|
|
2022-01-23 15:26:16 -08:00
|
|
|
- name: Set up Node
|
2023-03-24 13:57:34 -07:00
|
|
|
uses: actions/setup-node@v3
|
2021-05-13 18:06:59 -07:00
|
|
|
with:
|
2024-02-22 08:42:13 -08:00
|
|
|
node-version: 20
|
2021-05-13 18:06:59 -07:00
|
|
|
|
2022-01-23 15:26:16 -08:00
|
|
|
- name: Set up Python
|
2023-03-24 13:57:34 -07:00
|
|
|
uses: actions/setup-python@v4
|
2021-05-13 18:06:59 -07:00
|
|
|
with:
|
2022-01-23 15:26:16 -08:00
|
|
|
python-version: 3.x
|
2021-05-13 18:06:59 -07:00
|
|
|
|
2022-01-23 15:26:16 -08:00
|
|
|
- name: Install Dependencies
|
|
|
|
run: npm ci
|
|
|
|
shell: bash
|
|
|
|
|
|
|
|
- name: Build
|
|
|
|
env:
|
2023-03-28 18:40:33 -07:00
|
|
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2022-01-23 15:26:16 -08:00
|
|
|
run: npm run dist
|
|
|
|
shell: bash
|