Skip to content

Commit 5ad4108

Browse files
authored
Switch badge to @fluencelabs/fluence (#6)
1 parent 0c19f08 commit 5ad4108

File tree

3 files changed

+7
-9
lines changed

3 files changed

+7
-9
lines changed

.github/workflows/publish_branch.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,14 @@ jobs:
3131

3232
- name: Get version from npm and increment
3333
run: |
34-
set -x
34+
# install semver and add it to PATH
3535
yarn global add semver
3636
PATH="$(yarn global bin):$PATH"
3737
38-
# take npm version and increment it
39-
PKG_NAME="$(cat package.json | jq -r .name)"
40-
4138
# sanitize branch name so it can be used as a semver suffix (replace [^0-9a-zA-Z-] with hyphen)
4239
SANITIZED_BRANCH="$(echo -n "${{ env.BRANCH_NAME }}" | tr -C '[:alnum:]-' -)"
40+
# get package name from package.json
41+
PKG_NAME="$(cat package.json | jq -r .name)"
4342
4443
# take all versions from npm and replace single quotes with double quotes
4544
NPM_VERSIONS=$(yarn info --silent "$PKG_NAME" versions 2>/dev/null | tr \' \")
@@ -50,7 +49,7 @@ jobs:
5049
# sort versions according to semver, take highest (last)
5150
LAST_NPM_VERSION="$(semver -p $(echo $NPM_VERSIONS_FLATTENED) | tail -n1 || true)"
5251
# increment prerelease part of the version
53-
PRERELEASE_NPM_VERSION="$(semver --increment prerelease --preid "$SANITIZED_BRANCH" "${LAST_NPM_VERSION}" || true)" # added '-0' here to avoid semver erroneously increment patch octet. Any suffix works, '-0' is chosen deliberately.
52+
PRERELEASE_NPM_VERSION="$(semver --increment prerelease --preid "$SANITIZED_BRANCH" "${LAST_NPM_VERSION}" || true)"
5453
5554
# take local version
5655
LOCAL_VERSION="$(cat package.json | jq -r .version)"

.github/workflows/publish_release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323

2424
- name: Get version from npm and increment
2525
run: |
26-
set -x
2726
yarn global add semver
2827
PATH="$(yarn global bin):$PATH"
2928
@@ -40,7 +39,7 @@ jobs:
4039
4140
# save info to env
4241
echo "FINAL_VERSION=$MAX_VERSION" | tee -a $GITHUB_ENV
43-
echo "PKG_NAME=$PKG_NAME" | tee -a $GITHUB_ENV"
42+
echo "PKG_NAME=$PKG_NAME" | tee -a $GITHUB_ENV
4443
4544
### Set version
4645
- name: Set version to ${{ env.FINAL_VERSION }}
@@ -59,7 +58,7 @@ jobs:
5958
env:
6059
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
6160

62-
### Create a pre-release
61+
### Create a release
6362
- name: Create Release
6463
id: create_release
6564
uses: actions/create-release@v1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Fluence browser client
22

3-
[![npm version](https://badge.fury.io/js/fluence.svg)](https://badge.fury.io/js/fluence)
3+
[![npm version](https://badge.fury.io/js/%40fluencelabs%2Ffluence.svg)](https://badge.fury.io/js/%40fluencelabs%2Ffluence)
44

55
Browser client for the Fluence network based on the js-libp2p.
66

0 commit comments

Comments
 (0)