Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit 6e662f4

Browse files
bors[bot]Levertion
andcommitted
Merge #21
21: Lerna prerelease r=Levertion a=Levertion bors r+ Co-authored-by: Levertion <[email protected]>
2 parents bf20120 + 5da2761 commit 6e662f4

File tree

5 files changed

+24
-9
lines changed

5 files changed

+24
-9
lines changed

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,15 @@ We use [bors](https://bors.tech/) to manage merging pull requests.
4141

4242
The packages are tested using node 10 and 8.
4343

44-
### npm packages
44+
### Publishing strategy
4545

4646
The packages are automatically released on `npm` once the tests pass on the
47-
master branch, under the `next` tag. For versions of packages which are more
48-
stable, the tag is manually updated to `latest`.
47+
master branch, under the `master` npm tag using lerna's
48+
[conventional prerelease](https://github.com/lerna/lerna/blob/master/commands/version/README.md#--conventional-prerelease).
49+
This are then
50+
['graduated'](https://github.com/lerna/lerna/blob/master/commands/version/README.md#--conventional-graduate)
51+
on a weekly Travis cron job. This may fail in a given week if a PR is merged at
52+
the wrong time (i.e just before the cron job)
4953

5054
### License
5155

binary-nbt/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ interested. We also only support big endian NBT, so the pocket edition nbt is
3737
not yet supported
3838

3939
This package is part of the
40-
[`mcfunction-langserver`](https://github.com/Levertion/mcfunction) project.
40+
[`mcfunction-langserver`](https://github.com/Levertion/mcfunction) project. It
41+
is published automatically - see
42+
[the publishing strategy](https://github.com/Levertion/mcfunction/tree/lerna-prerelease#publishing-strategy)
4143

4244
## API
4345

deploy.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
echo "Starting deploy script"
2+
3+
24
if [[ `git log -1 --pretty=%B` != "Publish"* ]]; then
35
if [ -z "$CI" ]; then
46
echo "This commit would run the deploy step"
@@ -23,7 +25,7 @@ if [[ `git log -1 --pretty=%B` != "Publish"* ]]; then
2325
git checkout origin/gh-pages
2426
git checkout --orphan gh-pages-orphan
2527
)
26-
npx lerna publish --dist-tag next --yes
28+
npx lerna publish --conventional-prerelease --yes --dist-tag=master
2729
(
2830
cd docs
2931
git add .
@@ -36,4 +38,9 @@ if [[ `git log -1 --pretty=%B` != "Publish"* ]]; then
3638
echo "Not on latest $TRAVIS_BRANCH, not pushing"
3739
fi
3840
fi
41+
else
42+
if [$TRAVIS_EVENT_TYPE == "cron"]; then
43+
# This will not happen if the publish step hasn't happened yet
44+
npx lerna publish --conventional-graduate --yes
45+
fi
3946
fi

id/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ tracks dependents, so if an item is later modified only its dependents need to
2525
be re-resolved. `ResolvedIDMap::resolveDeps` should be called.
2626

2727
This package is part of the
28-
[`mcfunction-langserver`](https://github.com/Levertion/mcfunction) project.
28+
[`mcfunction-langserver`](https://github.com/Levertion/mcfunction) project. It
29+
is published automatically - see
30+
[the publishing strategy](https://github.com/Levertion/mcfunction/tree/lerna-prerelease#publishing-strategy)
2931

3032
## Examples
3133

result/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@ string was one of the options, whereas a failure would imply that it wasn't. In
1212
this case, the parsed string could still be returned, such as to construct a
1313
more specific error message.
1414

15-
<!-- TODO: change this paragraph to be more useful/general: -->
16-
1715
This package is part of the
18-
[`mcfunction-langserver`](https://github.com/Levertion/mcfunction) project.
16+
[`mcfunction-langserver`](https://github.com/Levertion/mcfunction) project. It
17+
is published automatically - see
18+
[the publishing strategy](https://github.com/Levertion/mcfunction/tree/lerna-prerelease#publishing-strategy)
1919

2020
## Example
2121

0 commit comments

Comments
 (0)