Skip to content

Commit 6a1561c

Browse files
🤖 config(github): Configure workflow to automate build.
These changes were automatically generated by a transform whose code can be found at: - https://github.com/make-github-pseudonymous-again/rejuvenate/blob/042c55f2254a9efdce5074d537141d6f85a98927/src/transforms/github:workflow-configure-ci:build.js Please contact the author of the transform if you believe there was an error.
1 parent 0ae1c7b commit 6a1561c

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci:build.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: ci:build
2+
on:
3+
- push
4+
- pull_request
5+
jobs:
6+
test:
7+
name: Continuous integration (build)
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout 🛎️
11+
uses: actions/checkout@v2
12+
13+
- name: Install 🔧
14+
uses: bahmutov/npm-install@v1
15+
with:
16+
install-command: yarn --frozen-lockfile --ignore-scripts
17+
useRollingCache: true
18+
19+
- name: Build 🏗️
20+
run: yarn ci:build

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"build": "NODE_ENV=production microbundle",
4242
"build-docs": "esdoc",
4343
"build-gh-pages": "npm run build-docs",
44+
"ci:build": "npm run build",
4445
"ci:test": "npm run lint-config && npm run lint && npm run cover",
4546
"commit-msg": "commitlint --edit",
4647
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",

0 commit comments

Comments
 (0)