1.9.1 • Published 28 days ago

published v1.9.1

Weekly downloads
314
License
MIT
Repository
github
Last release
28 days ago

published npm.io npm.io npm.io

📦 Opinionated NPM publish program

published helps streamline a git based workflow with package publishing through continues delivery. Developers control their branch and version strategies, and published takes care of logical conditioning of when to publish stable versions and/or release candidates.

Run without installation

npx published@1

OR

npm exec published@1 --yes

Options

optionDescriptionExample
testingDry runnpm exec published --yes -- --testing
slack.webhookNotify on Slacknpm exec published --yes -- --slack.webhook $SLACK_WEBHOOK
slack.channelChange Slack webhook channelnpm exec published --yes -- --slack.webhook $SLACK_WEBHOOK --slack.channel "#publish"
quietSilent outputs and notificationsnpm exec published --yes -- --quiet
git-tagPush a tag to git, Only from master(latest-branch) or latest branchnpm exec published --yes -- --git-tag
prefix-git-tagChoose a prefix that will be prepend to git tag. Only from master(latest-branch) or latest branchnpm exec published --yes -- --git-tag --prefix-git-tag=my-prefix@
on-publishExecute shell command after a publish eventnpm exec published --yes -- --on-publish bash\ ./do-more.sh
on-<tag>Execute shell command after a publish event with this tag (executes after on-publish)npm exec published --yes -- --on-latest 'echo "Published!"'
latest-branchBranch that is considered latest (default is 'master')npm exec published --yes -- --latest-branch stable
tag-nameTag name to be used regardless of config. If performed from a branch other than master, needs to be used in conjunction with latest-branch optionnpm exec published --yes -- --tag-name next --latest-branch next
no-shaDisables the commit's SHA suffix for RC versionsnpm exec published --yes -- --no-sha

TL;DR

Branch typeaction
Feature branchRelease RC versions on tag by branch name.
Master (latest) branchRelease clean semver on "latest" tag.
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc

Flow

Feature branch

  • Publish only versions with a pre-release section containing rc string
  • Unless the --no-sha flag was passed, branch versions get a suffix that matches the commit ID, so you can re install the same tag and get updates
  • Tags are named after the branch name

"master" branch

  • Only publish clean semver versions, no pre-release
  • Publish versions to tag "latest" (or publishConfig.tag from package.json)

* using latest-branch option will switch its behaviour with master

"latest" branch

  • Same as master, but will ignore publishConfig.tag setting.Use this if your master branch points to "next" through publishConfig.tag

Examples

branchversionpublishtagw/o sha
my_feature_branch, next1.3.0nothingN/A-
my_feature_branch, next1.3.1-alphanothingN/A-
my_feature_branch, next1.3.1-rc1.3.1-rcmy_feature_branch, next
my_feature_branch, next1.3.1-rc.11.3.1-rc.1my_feature_branch, next
my_feature_branch, next1.3.1-rc1.3.1-rc-c447f6amy_feature_branch, next
my_feature_branch, next1.3.1-rc.11.3.1-rc.1-c447f6amy_feature_branch, next
master, latest1.3.01.3.0latest-
master, latest1.3.0-betaThrows ErrorN/A-
master, latest1.3.0-rcThrows ErrorN/A-

* using latest-branch option will switch its behaviour with master

Package icon by Julien Deveaux from the Noun Project

1.9.1

28 days ago

1.9.0

7 months ago

1.8.5-rc-41c0514

2 years ago

1.8.4

2 years ago

1.8.3

2 years ago

1.8.2

3 years ago

1.8.1

3 years ago

1.8.0

4 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.1

5 years ago

1.7.0

5 years ago

1.6.1

5 years ago

1.6.0

5 years ago

1.6.0-rc

5 years ago

1.6.0-rc-77c9df2

5 years ago

1.5.3

5 years ago

1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

6 years ago

1.3.4-rc-a0465a8

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.4

6 years ago

1.2.3

6 years ago

1.2.2

6 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.3

6 years ago

1.0.3-rc-a7b9f11

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-rc-11f685b

6 years ago

1.0.0-rc-95e259b

6 years ago

1.0.0-rc-008d516

6 years ago

1.0.0-rc-0221409

6 years ago

1.0.0-rc-1e6a8bc

6 years ago

1.0.0-rc-df90612

6 years ago

0.1.31

6 years ago

0.1.30

6 years ago

0.1.29

6 years ago

0.1.28

6 years ago

0.1.27

6 years ago

0.1.26

6 years ago

0.1.25

6 years ago

0.1.24

6 years ago

0.1.23

6 years ago

0.1.22

6 years ago

0.1.21

6 years ago

0.1.20

6 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.1.0-rc-771b981

6 years ago

0.1.0-rc-ffc77e4

6 years ago

0.1.0-rc-e8e405e

6 years ago

0.1.0-rc-04e6ea2

6 years ago

0.1.0-rc-6ec61cc

6 years ago

0.1.0-rc-278d1a4

6 years ago

0.0.0

6 years ago