mirror of
https://github.com/fluencelabs/js-libp2p
synced 2025-04-24 18:12:14 +00:00
chore: autopublish next version (#1129)
If we aren't releasing a version on a given release run, publish an rc under the `next` tag instead.
This commit is contained in:
parent
e0354b4c6b
commit
280bb1b1f6
7
.github/workflows/main.yml
vendored
7
.github/workflows/main.yml
vendored
@ -114,7 +114,6 @@ jobs:
|
||||
- uses: actions/setup-node@v2
|
||||
with:
|
||||
node-version: lts/*
|
||||
registry-url: 'https://registry.npmjs.org'
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
- uses: ipfs/aegir/actions/cache-node-modules@master
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
@ -122,3 +121,9 @@ jobs:
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
if: ${{ steps.release.outputs.release_created }}
|
||||
- run: |
|
||||
npm version `node -p -e "require('./package.json').version"`-`git rev-parse --short HEAD` --no-git-tag-version
|
||||
npm publish --tag next
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||
if: ${{ !steps.release.outputs.release_created }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user