repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'master' into issue-70
[poolifier.git]
/
.github
/
workflows
/
npmpublish.yml
diff --git
a/.github/workflows/npmpublish.yml
b/.github/workflows/npmpublish.yml
index 7c7f5cae5f0ace6ec26b7bc66cb52c939b6e332b..90ba5eb7b355c5f0ecc4d1c883c58f0d60f92c60 100644
(file)
--- a/
.github/workflows/npmpublish.yml
+++ b/
.github/workflows/npmpublish.yml
@@
-7,24
+7,38
@@
on:
jobs:
build:
runs-on: ubuntu-latest
jobs:
build:
runs-on: ubuntu-latest
+
steps:
steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-node@v1
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup Node
+ uses: actions/setup-node@v2
with:
node-version: 12
- run: npm ci
with:
node-version: 12
- run: npm ci
- - run: npm run test
+ - run: npm run lint
+ - run: npm run test:prod
+ - run: npm run coverage
publish-npm:
needs: build
runs-on: ubuntu-latest
publish-npm:
needs: build
runs-on: ubuntu-latest
+
steps:
steps:
- - uses: actions/checkout@v1
- - uses: actions/setup-node@v1
+ - name: Checkout
+ uses: actions/checkout@v2
+
+ - name: Setup Node
+ uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- - run: npm ci
- - run: npm publish
+
+ - name: Install
+ run: npm ci --production
+
+ - name: Publish
+ run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}