mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-25 18:42:15 +00:00
chore: fix publish command
This commit is contained in:
parent
85e23eb1cb
commit
54e77221eb
12
.github/workflows/main.yml
vendored
12
.github/workflows/main.yml
vendored
@ -114,13 +114,13 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
node-version: lts/*
|
node-version: lts/*
|
||||||
- uses: ipfs/aegir/actions/cache-node-modules@master
|
- uses: ipfs/aegir/actions/cache-node-modules@master
|
||||||
- run: npm publish
|
- if: ${{ steps.release.outputs.release_created }}
|
||||||
|
run: npm publish
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
if: ${{ steps.release.outputs.release_created }}
|
- if: ${{ !steps.release.outputs.release_created }}
|
||||||
- run: |
|
run: |
|
||||||
npm version `node -p -e "require('./package.json').version"`-`git rev-parse --short HEAD` --no-git-tag-version
|
npm version `node -p -e "require('./package.json').version"`-`git rev-parse --short HEAD` --no-git-tag-version
|
||||||
npm publish --tag next
|
npm publish --tag next
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
if: ${{ !steps.release.outputs.release_created }}
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user