Skip to content

Commit

Permalink
Merge pull request #12 from ObviousJs/dev
Browse files Browse the repository at this point in the history
ci: add npmignore
  • Loading branch information
run-nan committed Dec 26, 2020
2 parents 122d279 + 3594144 commit d54b337
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,16 @@ on:
types: [created]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
- run: npm ci
- run: npm test

publish-npm:
needs: build
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
- run: npm run build
- run: npm publish
env:
Expand Down
9 changes: 9 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.github
examples
test
.editorconfig
.eslintignore
.eslintrc.js
jest.config.js
setup-fetch.js
coverage

0 comments on commit d54b337

Please sign in to comment.