Skip to content

Commit 1db4a38

Browse files
mattstromMatt Strom
andauthored
ci: switch to github actions (#237)
circleci is causing headaches Co-authored-by: Matt Strom <matt.strom@evolv.ai>
1 parent bc00218 commit 1db4a38

File tree

2 files changed

+65
-45
lines changed

2 files changed

+65
-45
lines changed

.circleci/config.yml

Lines changed: 0 additions & 45 deletions
This file was deleted.

.github/workflows/on-push.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: Build and Release
2+
3+
on:
4+
push:
5+
tags-ignore:
6+
- '[0-9]+.[0-9]+.[0-9]+'
7+
8+
jobs:
9+
build:
10+
name: Build
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v2
15+
16+
- name: Setup Git
17+
run: |
18+
git config user.name "GitHub Actions Bot"
19+
git config user.email "<>"
20+
21+
- name: Cache node modules
22+
uses: actions/cache@v2
23+
env:
24+
cache-name: cache-node-modules
25+
with:
26+
path: ~/.npm
27+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
28+
restore-keys: |
29+
${{ runner.os }}-build-${{ env.cache-name }}-
30+
${{ runner.os }}-build-
31+
${{ runner.os }}-
32+
33+
- name: Setup Node
34+
uses: actions/setup-node@v1
35+
with:
36+
node-version: '16'
37+
38+
- name: Install Node Packages
39+
working-directory: .source
40+
run: |
41+
npm ci --production=false
42+
43+
- name: Build
44+
run: |
45+
npm run build
46+
47+
release:
48+
name: Release
49+
if: github.ref == 'refs/heads/master'
50+
runs-on: ubuntu-latest
51+
needs:
52+
- build
53+
permissions:
54+
contents: write
55+
steps:
56+
- name: Checkout Repo
57+
uses: actions/checkout@v2
58+
59+
- name: Setup Node
60+
uses: actions/setup-node@v1
61+
with:
62+
node-version: '16'
63+
64+
- name: Release
65+
run: npx semantic-release

0 commit comments

Comments
 (0)