-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (45 loc) · 1.31 KB
/
build.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
name: Build
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- edited
- synchronize
jobs:
build-on-pr:
runs-on: ubuntu-latest
steps:
- name: Generate GitHub app token
id: generate_app_token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.HYPER_SDK_APP_ID }}
private-key: ${{ secrets.HYPER_SDK_APP_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ steps.generate_app_token.outputs.token }}
ref: ${{ github.event.pull_request.head.ref }}
fetch-depth: ${{ github.event.pull_request.commits }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 18
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Conventional Changelog Action
id: changelog
uses: TriPSs/conventional-changelog-action@v5.1.0
with:
github-token: ${{ steps.generate_app_token.outputs.token }}
release-count: 0
skip-version-file: "true"
git-push: "false"
skip-tag: "true"
skip-bump: "true"
- name: Git push
run: git push origin github-actions-2