Skip to content

Commit

Permalink
Add publish script to Makefile
Browse files Browse the repository at this point in the history
It should now be possible to publish using the following command:

```shell
make publish version='0.1.34'
```

Note that you should only do this on a completely clean checkout of the
HEAD of the `master` branch.

You should also ensure that your dependencies are up to date by running
`pnpm i`.
  • Loading branch information
daniel-ac-martin committed Dec 24, 2020
1 parent c66257c commit 0593844
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
.PHONY = all deps test tmux
version ?= next

.PHONY = all deps publish test tmux

all: deps

Expand All @@ -13,3 +15,11 @@ tmux: deps

node_modules/: package.json packages/*/package.json
pnpm install

publish:
npm run all:clean
git nb 'v$(version)'
npm version '$(version)'
npm run all:publish
git push
git push --tags

0 comments on commit 0593844

Please sign in to comment.