-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1008 Bytes
/
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
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 }}
- name: Publish code connect
uses: ./.github/publish_code_connect
with:
figma-access-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