forked from tweakphp/tweakphp
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 873 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Build
on:
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest]
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '22.x'
- name: Install NPM Dependencies
run: npm install
- name: Build & Publish Mac
if: matrix.os == 'macos-latest'
run: npm run publish-mac
env:
VITE_LSP_WEBSOCKET_PORT: 54331
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build & Publish Linux
if: matrix.os == 'ubuntu-latest'
run: npm run publish-linux
env:
VITE_LSP_WEBSOCKET_PORT: 54331
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}