-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (47 loc) · 1.24 KB
/
on-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
50
51
52
53
name: CI - On Release
on:
release:
types: [published]
workflow_dispatch:
jobs:
publish:
name: Publish to NPM
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{github.ref_name}}
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Install packages
run: npm ci
- name: Compile Typescript files
run: tsc
- name: Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
publish_code_connect:
name: Publish Code Connect
needs: publish
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install packages
run: npm ci
- name: Publish code connect
run: npx figma connect publish --token ${{ secrets.FIGMA_PERSONAL_ACCESS_TOKEN}}
update_npm_dependencies:
needs: publish
uses: ./.github/workflows/update_dependencies.yml
secrets: inherit
update_flutter:
uses: ./.github/workflows/update_zeta_flutter.yml
secrets: inherit
update_android:
uses: ./.github/workflows/update_zds_android.yml
secrets: inherit