repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
build: pin node version to 19.7.x CI
[poolifier.git]
/
.github
/
workflows
/
npmpublish.yml
diff --git
a/.github/workflows/npmpublish.yml
b/.github/workflows/npmpublish.yml
index 74e19594459f85832f7b28ddc3a7bb77ce3d8bd9..e32ce385eeb62d08f0d8bc2bee7deed7c9e130c2 100644
(file)
--- a/
.github/workflows/npmpublish.yml
+++ b/
.github/workflows/npmpublish.yml
@@
-10,28
+10,26
@@
jobs:
steps:
- name: Checkout
steps:
- name: Checkout
- uses: actions/checkout@v
2
+ uses: actions/checkout@v
3
- name: Setup Node
- name: Setup Node
- uses: actions/setup-node@v
2
+ uses: actions/setup-node@v
3
with:
with:
- node-version:
14
+ node-version:
'18.x'
- name: Install
run: npm ci
- name: Install
run: npm ci
- - name: Production Build
- run: npm run build:prod
+ - name: Tests & Coverage
+ run: |
+ npm run test
+ npm run coverage
- name: Lint
run: npm run lint
- name: Lint
run: npm run lint
- - name: Production Tests & Coverage
- run: |
- npm run test:prod
- npm run coverage
- env:
- CI: true
+ - name: Production Build
+ run: npm run build:prod
publish-npm:
needs: build
publish-npm:
needs: build
@@
-39,26
+37,24
@@
jobs:
steps:
- name: Checkout
steps:
- name: Checkout
- uses: actions/checkout@v
2
+ uses: actions/checkout@v
3
- name: Setup Node
- name: Setup Node
- uses: actions/setup-node@v
2
+ uses: actions/setup-node@v
3
with:
with:
- node-version:
14
+ node-version:
'18.x'
registry-url: https://registry.npmjs.org/
- name: Read package.json version
registry-url: https://registry.npmjs.org/
- name: Read package.json version
- uses: tyankatsu0105/read-package-version-actions@v1
id: package-version
id: package-version
+ uses: jaywcjlove/github-action-package@main
- name: Install
run: npm ci
- name: Publish Release
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
- name: Install
run: npm ci
- name: Publish Release
if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
- run: |
- npm login
- npm publish
+ run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}