generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (42 loc) · 1021 Bytes
/
test.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: 'test'
on: # rebuild any PRs and main branch changes
pull_request:
types:
- unlabeled
- labeled
- synchronize
- opened
- reopened
concurrency:
group: test-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- run: |
npm install
- run: |
npm run build
npm run package
- name: Use tags as reference
uses: ./
with:
file_path: 'package.json'
major_label: 'TEST: major version'
minor_label: 'TEST: minor version'
patch_label: 'TEST: patch version'
use_tag_as_ref: true
comment: false
commit: false
- name: Reset files
run: |
git checkout -- package.json
- name: Use main branch as reference
uses: ./
with:
file_path: 'package.json'
comment: true