npm publish change

This commit is contained in:
unknown 2020-07-23 11:47:25 +03:00
parent e46290c4e3
commit 405c95fb29

View File

@ -19,15 +19,10 @@ jobs:
node-version: 12.x
registry-url: https://npm.pkg.github.com
scope: '@MaTeMaTuK'
- name: NPM Publish
run: |
LATEST=`npm view . version`
CURRENT=`cat package.json | jq -r .version`
if [ "$LATEST" != "$CURRENT" ]
then
npm ci
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: NPM Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}