Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

Commit

Permalink
chore: remove publish steps from README and fix publish in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
eliseeborn committed Feb 4, 2022
1 parent 02aee72 commit d365da8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,20 +100,20 @@ jobs:
- image: circleci/node:16.7.0
steps:
- attach_workspace:
at: /org
at: ~/org
- run:
name: Setup npm
command: |
set -eo pipefail
# Amend auth token for access to public npm registry for @ nebula.js packages
echo "//registry.npmjs. org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
# Amend auth token for access to public npm registry for @nebula.js packages
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc
- run:
name: Publish
command: |
set -euo pipefail
PROJ_VER=v$(cat package.json | jq -r '.version')
TAG_NAME=$(git tag --points-at HEAD)
if [ "$TAG_NAME" == "$PROJ_VER" ]
then
echo "Running >> npm publish"
Expand Down
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,3 @@ embed.render({
type: 'orgchart',
});
```

## How to release

1. Create a release branch version/1.x.x
2. Run `npm version patch/minor`
3. Run `git push && git push --tags`
4. Merge the branch
5. Run `npm publish`

0 comments on commit d365da8

Please sign in to comment.