npm publish change
This commit is contained in:
parent
e46290c4e3
commit
405c95fb29
15
.github/workflows/npm-publish.yml
vendored
15
.github/workflows/npm-publish.yml
vendored
@ -19,15 +19,10 @@ jobs:
|
|||||||
node-version: 12.x
|
node-version: 12.x
|
||||||
registry-url: https://npm.pkg.github.com
|
registry-url: https://npm.pkg.github.com
|
||||||
scope: '@MaTeMaTuK'
|
scope: '@MaTeMaTuK'
|
||||||
|
env:
|
||||||
- name: NPM Publish
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
run: |
|
|
||||||
LATEST=`npm view . version`
|
- name: NPM Publish
|
||||||
CURRENT=`cat package.json | jq -r .version`
|
run: npm publish
|
||||||
if [ "$LATEST" != "$CURRENT" ]
|
|
||||||
then
|
|
||||||
npm ci
|
|
||||||
npm publish
|
|
||||||
fi
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user