Skip to content

Commit

Permalink
Lint ourselves in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
wichert committed Apr 1, 2020
1 parent 9d070ae commit af103d7
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
name: Node.js Package

on:
push:
tags:
- "v*"

on: push

jobs:
test:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm test

publish-npm:
name: Publish
if: startsWith(github.ref, 'refs/tags/v')
needs: test

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit af103d7

Please sign in to comment.