Skip to content

Commit 4693f95

Browse files
authored
Chore/fixup (#55)
1 parent 785b604 commit 4693f95

File tree

10 files changed

+12251
-6074
lines changed

10 files changed

+12251
-6074
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
name: Continuous Integration
2-
# This workflow is triggered on pushes to the repository.
3-
on: [push]
2+
on: push
43

54
jobs:
65
ci:
76
runs-on: ubuntu-latest
7+
if: "!contains(github.event.head_commit.message, 'ci skip')"
88
steps:
9-
- name: Checkout code
9+
- name: Checkout
1010
uses: actions/checkout@master
1111
with:
1212
fetch-depth: 1
13-
- name: Install dependencies
13+
14+
- name: Install
1415
run: npm ci
15-
- name: Lint code
16+
17+
- name: Lint
1618
run: npm run lint
17-
- name: Check types
19+
20+
- name: Check
1821
run: npm run type-check
19-
- name: Build with Gatsby
20-
run: npm run build

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Release
2+
on:
3+
release:
4+
types: [published]
5+
6+
jobs:
7+
publish:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@master
12+
with:
13+
fetch-depth: 1
14+
15+
- name: Install
16+
run: npm ci
17+
18+
- name: Build & release
19+
env:
20+
VERSION_TAG: ${{ github.event.release.tag_name }}
21+
run: |
22+
git config --global user.name "Beep boop bot"
23+
git config --global user.email "alexieyizhe@gmail.com"
24+
25+
npm run build
26+
27+
npm version $VERSION_TAG --git-tag-version=false
28+
git commit -am "Release version $VERSION_TAG [ci skip]"
29+
git push -u origin release

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,5 @@ yarn-error.log
6868

6969
# Yarn Integrity file
7070
.yarn-integrity
71+
72+
.vscode/snipsnap.code-snippets

0 commit comments

Comments
 (0)