generated from gagoar/ts-node-template
-
Notifications
You must be signed in to change notification settings - Fork 7
29 lines (26 loc) · 879 Bytes
/
cli.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
name: Build Cli
on: [push, pull_request_target]
jobs:
getNodeVersion:
uses: gagoar/github-app-installation-token/.github/workflows/node_version.yml@main
buildCli:
name: Run build-cli
runs-on: ubuntu-latest
needs: getNodeVersion
steps:
- uses: actions/checkout@v2
- name: Setting node version to ${{ needs.getNodeVersion.outputs.node_version }}
uses: actions/setup-node@v2
with:
node-version: '${{ needs.getNodeVersion.outputs.node_version }}'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build-cli
- name: use cli
run: |
PRIVATE_KEY="${{ secrets.PRIVATE_KEY }}"
cli/cli.js \
--appId ${{ secrets.APP_ID }} \
--installationId ${{ secrets.INSTALLATION_ID }} \
--privateKey="$PRIVATE_KEY"