Skip to content

Commit

Permalink
Chore: build test (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
Skye-31 committed Sep 13, 2022
1 parent 410082a commit bc18cce
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .changeset/polite-icons-wash.md
@@ -0,0 +1,7 @@
---
"d1-orm": patch
---

Chore: Add a build test

Also ensure that the lib is built before publishing.
21 changes: 21 additions & 0 deletions .github/workflows/check.yml
Expand Up @@ -50,3 +50,24 @@ jobs:

- name: Test
run: npm run test

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Use Node.js 16.17
uses: actions/setup-node@v3
with:
node-version: 16.17
cache: "npm" # cache ~/.npm in case 'npm ci' needs to run

- name: Install NPM Dependencies
run: npm ci

- name: Build
run: npm run build
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: Run tests
run: npm run test

- name: Build
run: npm run build

- name: Create Release Pull Request
uses: changesets/action@v1
with:
Expand Down

0 comments on commit bc18cce

Please sign in to comment.