npm publish change
This commit is contained in:
parent
6da93e0f1d
commit
e46290c4e3
14
.github/workflows/npm-publish.yml
vendored
14
.github/workflows/npm-publish.yml
vendored
@ -17,9 +17,17 @@ jobs:
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: 12.x
|
||||
registry-url: https://registry.npmjs.org
|
||||
registry-url: https://npm.pkg.github.com
|
||||
scope: '@MaTeMaTuK'
|
||||
|
||||
- name: NPM Publish
|
||||
run: npm publish --access public
|
||||
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.NPM_AUTH_TOKEN}}
|
||||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user