Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Weygand committed Dec 9, 2019
1 parent 300d21d commit 7ad3747
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 25 deletions.
25 changes: 13 additions & 12 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,18 @@ on: [push]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: npm ci
run: npm ci
- name: npm test
run: npm test
- name: coverage
run: npm run coverage
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: npm ci
run: npm ci
- name: npm test
run: npm test
- name: npm run build
run: npm run build
- name: coverage
run: npm run coverage
25 changes: 13 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@ name: Node CI

on:
push:
tags:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: npm ci
run: npm ci
- name: npm test
run: npm test
- name: coverage
run: npm run coverage
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
- name: npm ci
run: npm ci
- name: npm test
run: npm test
- name: coverage
run: npm run coverage

publish-npm:
needs: build
Expand All @@ -31,6 +31,7 @@ jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm run build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "spatial-hashmap",
"version": "1.0.1",
"version": "1.0.2",
"description": "Broad phase collision detection using a spatial hashmap",
"keywords": [
"collision",
Expand Down

0 comments on commit 7ad3747

Please sign in to comment.