generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 0
58 lines (57 loc) · 1.59 KB
/
ci.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
53
54
55
56
57
58
name: "Continuous Integration"
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: npm install
- run: npm run all
test: # make sure the action works on a clean machine without building
runs-on: ubuntu-latest
strategy:
matrix:
show_differences:
- true
- false
show_merge_commits:
- true
- false
repo:
- owner: NixOS
repo: nixpkgs
basehead: cc455c004a60e1d65a0fb86ad6cc76168c6bb4d5...67c80531be622641b5b2ccc3a7aff355cb02476b
- owner: nix-community
repo: home-manager
basehead: b0d769691cc379c9ab91d3acec5d14e75c02c02b...59be1f4983ee3689de3172716a6c7e95a6a37bb7
steps:
- uses: actions/checkout@v2
- uses: ./
with:
owner: ${{ matrix.repo.owner }}
repo: ${{ matrix.repo.repo }}
basehead: ${{ matrix.repo.basehead }}
token: ${{ secrets.GITHUB_TOKEN }}
show-differences: ${{ matrix.show_differences }}
show-merge-commits: ${{ matrix.show_merge_commits }}
release:
runs-on: ubuntu-latest
needs: [build, test]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Setup NodeJS
uses: actions/setup-node@v1
with:
node-version: 12
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release