forked from acaldas/document-model-electron
-
Notifications
You must be signed in to change notification settings - Fork 3
52 lines (49 loc) · 1.25 KB
/
release.yaml
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Release
on:
push:
branches: [main, staging, develop]
workflow_dispatch:
env:
HUSKY: 0
jobs:
release:
permissions:
contents: write
issues: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x
- name: Install Dependencies
run: npm install --frozen-lockfile
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
# build_and_publish_electron:
# needs: [release]
# permissions:
# contents: write
# strategy:
# matrix:
# os: [macos-latest, windows-latest, ubuntu-latest]
# runs-on: ${{ matrix.os }}
# steps:
# - uses: actions/checkout@v3
# with:
# ref: ${{ github.ref_name }}
# - uses: actions/setup-node@v2
# with:
# node-version: 20.x
# - name: install dependencies
# run: yarn --frozen-lockfile
# - name: build and publish electron
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# run: npm run publish:electron