-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (37 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
38
39
40
41
42
43
44
45
46
47
48
49
# https://github.com/sveltejs/kit/blob/32afba695088b946aefe96da75b36de9b0667fbe/.github/workflows/release.yml
name: 'Release'
on:
push:
branches: ['main']
jobs:
changesets:
# prevents this action from running on forks
if: github.repository == 'secretflow/secretnote'
name: Changesets
uses: secretflow/web-ci/.github/workflows/release-changesets.yml@main
permissions:
pull-requests: write
contents: write
ci:
needs: [changesets]
if: |
needs.changesets.outputs.should-release == 'true'
name: Prerelease CI
uses: ./.github/workflows/ci.yml
permissions:
contents: read
actions: read
publish:
needs: [ci]
if: |
needs.ci.result == 'success'
name: Publish
uses: secretflow/web-ci/.github/workflows/release-publish.yml@main
with:
node-version: '18'
python-version: '3.10'
permissions:
contents: write
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}