Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: flow/flow-bin
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.122.0
Choose a base ref
...
head repository: flow/flow-bin
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.123.0
Choose a head ref
  • 4 commits
  • 5 files changed
  • 2 contributors

Commits on Apr 2, 2020

  1. add 'make publish'

    mroch committed Apr 2, 2020
    Copy the full SHA
    1bb33e8 View commit details
  2. bump during build

    bump is a no-op if the version hasn't changed so just run it during build
    mroch committed Apr 2, 2020
    Copy the full SHA
    1eaaa93 View commit details
  3. update readme

    mroch committed Apr 2, 2020
    Copy the full SHA
    ace9480 View commit details

Commits on Apr 16, 2020

  1. v0.123.0

    flow-bot committed Apr 16, 2020
    Copy the full SHA
    5559e44 View commit details
Showing with 27 additions and 24 deletions.
  1. +1 −0 .gitignore
  2. +11 −1 Makefile
  3. +3 −3 SHASUM256.txt
  4. +1 −1 package.json
  5. +11 −19 readme.md
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.npmrc
node_modules
/flow-*-v*/
*.swp
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -10,6 +10,7 @@ all: clean build test

.PHONY: clean
clean:
rm -f .npmrc
rm -rf flow-*-v* SHASUM256.txt

.PHONY: bump
@@ -23,7 +24,7 @@ test: $(FLOW_BINS)
node test.js

.PHONY: build
build: clean SHASUM256.txt
build: clean bump SHASUM256.txt

.PHONY: push
push: build test
@@ -32,6 +33,15 @@ push: build test
git push
git push --tags

.PHONY: publish
publish:
ifneq ("$(NPM_TOKEN)", "")
@echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
else
@echo "NPM_TOKEN not set. Either set a token or run 'npm adduser' to log in"
endif
npm publish --tag $(if $(findstring -,$(FLOW_VERSION)),next,latest)

SHASUM256.txt: $(FLOW_BINS)
shasum -a 256 $^ > $@

6 changes: 3 additions & 3 deletions SHASUM256.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
919affbef26b69b0a36bf23539f13464707a4a88397bb987a4d795c6de992a59 flow-linux64-v0.122.0/flow
6f139834fc481b78604946b4c8141fc3311d81669f5298f10bb50e3e9d99d11d flow-osx-v0.122.0/flow
c11dccc0527b32e56e7f22d32757e3ba236e3da237252f90fa785e527bc63aa8 flow-win64-v0.122.0/flow.exe
5cb5d7190fc6ff68f24af1814861dcd1426f8a773f6a2a60fa97e74f0adb6c8c flow-linux64-v0.123.0/flow
831a8bfc443cf7c80769c2a715b6372137fa835752dbd086927ad693626ec92c flow-osx-v0.123.0/flow
05e314e727e4b6fbf3a469b43f1177c7c52154092b7ccb0e347c2e438fdd52be flow-win64-v0.123.0/flow.exe
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flow-bin",
"version": "0.122.0",
"version": "0.123.0",
"description": "Binary wrapper for Flow - A static type checker for JavaScript",
"license": "MIT",
"repository": "flowtype/flow-bin",
30 changes: 11 additions & 19 deletions readme.md
Original file line number Diff line number Diff line change
@@ -2,17 +2,23 @@

> Binary wrapper for [Flow](http://flowtype.org) - A static type checker for JavaScript
OS X, Linux (64-bit) and Windows binaries are currently [provided](http://flowtype.org/docs/getting-started.html#_).
OS X, Linux (64-bit) and Windows binaries are currently [provided](https://flow.org/en/docs/install/).


## CLI

For Yarn:

```
$ npm install --global flow-bin
$ yarn add --dev flow-bin
$ yarn run flow --help
```

For npm, add `{ "scripts": { "flow": "flow" } }` in package.json and run:

```
$ flow --help
$ npm install --save-dev flow-bin
$ npm run flow --help
```


@@ -41,22 +47,8 @@ flow-bin is MIT-licensed.

### New Release

1. Update the "version" in `package.json` to reflect the flow version to publish. (For now, `flow-bin`'s version is also the version of the `flow` binary).
2. Run `make`.
* There should be 2 uncommitted changes at this point: `SHASUM256.txt` and `package.json`.
3. Commit the changes with the message `Updated binary to v0.30.0`, with the correct version.
4. Push/merge to `master`.
5. Tag the update:

```sh
git checkout master &&
git pull &&
make test &&
git tag v$(node -p 'require("./package.json").version') &&
git push v$(node -p 'require("./package.json").version')
```

6. Publish to npm.
1. `make push VERSION=0.122.0` (use the same version as Flow)
2. Publish to npm: `make publish` (run `npm adduser` the first time to log in)

### Inspect a Release Before Publishing