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