Skip to content

Commit 1ab11d8

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/9b50c2a1d7e9ab7b4bc9c9ff88892e98c5f62244/src/transforms/github:workflow-configure-ci:build.js Please contact the author of the transform if you believe there was an error.
1 parent 6c34bfd commit 1ab11d8

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.github/workflows/ci:build.yml

+20
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@v3
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

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"build": "NODE_ENV=production microbundle",
5353
"build-docs": "esdoc",
5454
"build-gh-pages": "npm run build-docs",
55+
"ci:build": "npm run build",
5556
"ci:test": "npm run lint-config && npm run lint && npm run cover",
5657
"commit-msg": "commitlint --edit",
5758
"cover": "NODE_ENV=cover c8 --all --src src --reporter lcov --reporter text-summary --reporter text npm test",

0 commit comments

Comments
 (0)