action script changes
This commit is contained in:
parent
a7def4ceab
commit
47e6708437
11
.github/workflows/npm-publish.yml
vendored
11
.github/workflows/npm-publish.yml
vendored
@ -19,10 +19,15 @@ 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:
|
|
||||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
|
||||||
|
|
||||||
- name: NPM Publish
|
- name: NPM Publish
|
||||||
run: npm publish
|
run: |
|
||||||
|
LATEST=`npm view . version`
|
||||||
|
CURRENT=`cat package.json | jq -r .version`
|
||||||
|
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