File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ permissions:
1212 id-token : write
1313
1414jobs :
15- ci :
15+ test :
1616 runs-on : ubuntu-latest
1717 steps :
1818 - name : Checkout
3636 - name : Run Tests
3737 run : npm run test
3838
39+ faas :
40+ name : MetaCall FaaS Dispatch
41+ needs : test
42+ runs-on : ubuntu-latest
43+ steps :
44+ - name : MetaCall FaaS Workflow Dispatch
45+ uses : convictional/trigger-workflow-and-wait@v1.6.1
46+ with :
47+ owner : metacall
48+ repo : faas
49+ github_token : ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
50+ workflow_file_name : ci.yml
51+ wait_workflow : true
52+ client_payload : ' {"ref": "${{ github.head_ref || github.ref_name }}"}'
53+ ref : master
54+
55+ deploy :
56+ name : MetaCall Deploy Dispatch
57+ needs : test
58+ runs-on : ubuntu-latest
59+ steps :
60+ - name : MetaCall Deploy Workflow Dispatch
61+ uses : convictional/trigger-workflow-and-wait@v1.6.1
62+ with :
63+ owner : metacall
64+ repo : deploy
65+ github_token : ${{ secrets.G_PERSONAL_ACCESS_TOKEN }}
66+ workflow_file_name : ci.yml
67+ wait_workflow : true
68+ client_payload : ' {"ref": "${{ github.head_ref || github.ref_name }}"}'
69+ ref : master
70+
71+ publish :
72+ runs-on : ubuntu-latest
73+ if : startsWith(github.ref, 'refs/tags/')
74+ needs : [faas, deploy]
75+ steps :
76+ - name : Checkout
77+ uses : actions/checkout@v4
78+
79+ - name : Setup NodeJS
80+ uses : actions/setup-node@v4
81+ with :
82+ node-version : 24
83+ registry-url : https://registry.npmjs.org
84+
85+ - name : Installing Dependencies
86+ run : npm i
87+
88+ - name : Build
89+ run : npm run build
90+
3991 - name : Publish NPM
40- if : startsWith(github.ref, 'refs/tags/')
4192 run : |
4293 unset NODE_AUTH_TOKEN
4394 npm publish --provenance
You can’t perform that action at this time.
0 commit comments