-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (34 loc) · 1.01 KB
/
release.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
name: Update release PR or publish GitHub release
on:
push:
branches:
- master
concurrency: commits-to-master
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node_version: 20.10.0
- name: Install root for @changesets/cli
shell: bash
run: npm install --workspaces=false
- name: Update release pull request or publish
id: changesets
uses: changesets/action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit: 'chore: release packages'
publish: npm run release
- name: Publish electron apps
# if a release was published, publish the electron apps
if: steps.changesets.outputs.published == 'true'
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ secrets.GITHUB_TOKEN }}
repository: siafoundation/desktop
event-type: publish