repositories
/
poolifier.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Publish betas with beta tag (#204)
[poolifier.git]
/
.github
/
workflows
/
npmpublish.yml
diff --git
a/.github/workflows/npmpublish.yml
b/.github/workflows/npmpublish.yml
index 048d952e4e117319fde4b5b6fb183ee4c3c7973e..c62f0b540b0782b9932ac49967a9b645034941d1 100644
(file)
--- a/
.github/workflows/npmpublish.yml
+++ b/
.github/workflows/npmpublish.yml
@@
-47,10
+47,21
@@
jobs:
node-version: 12
registry-url: https://registry.npmjs.org/
node-version: 12
registry-url: https://registry.npmjs.org/
+ - name: Read package.json version
+ uses: tyankatsu0105/read-package-version-actions@v1
+ id: package-version
+
- name: Install
run: npm ci
- name: Install
run: npm ci
- - name: Publish
+ - name: Publish Release
+ if: ${{ contains(steps.package-version.outputs.version, '-') == false }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
+
+ - name: Publish Beta
+ if: ${{ contains(steps.package-version.outputs.version, 'beta') }}
+ run: npm publish --tag beta
+ env:
+ NODE_AUTH_TOKEN: ${{secrets.npm_token}}