Skip to content

Commit

Permalink
Add cleaning and prebuild steps
Browse files Browse the repository at this point in the history
  • Loading branch information
russellsteadman committed Apr 15, 2023
1 parent 3e53c2f commit f7ba0f0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Test Libs
on:
push:
branches:
- "*"
- "**/*"
- '*'
- '**/*'
pull_request:
branches: [main]

Expand All @@ -23,7 +23,6 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: npm run build
- run: npm test
env:
AWS_ACCESS_KEY_ID: dummy
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"version": "1.0.0",
"description": "Simple geospatial querying for Amazon DynamoDB",
"scripts": {
"prepublish": "tsc && tsc -p tsconfig.cjs.json",
"prepublish": "npm run build",
"clean": "rimraf dist",
"lint": "xo src/**/*",
"build": "tsc && tsc -p tsconfig.cjs.json",
"build": "npm run clean && tsc && tsc -p tsconfig.cjs.json",
"pretest": "npm run build",
"test": "xo src/**/* && ava"
},
"main": "dist/cjs/index.js",
Expand Down

0 comments on commit f7ba0f0

Please sign in to comment.