Skip to content

Commit 3ccd1fc

Browse files
Update ChangeLog and bump version for releasing 0.2.0. (#4)
* dev: Tweak release script to generate accurate ChangeLog. * Update ChangeLog and bump version for releasing 0.2.0.
1 parent 2acebe0 commit 3ccd1fc

File tree

3 files changed

+37
-4
lines changed

3 files changed

+37
-4
lines changed

CHANGELOG.md

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,24 @@
1-
## LSIF Typescript
1+
## Change Log
22

3-
### v0.1.17 (2022/04/29 15:10 +00:00)
3+
### v0.2.0 (2022/05/12 18:21 +00:00)
44

5+
- [#2](https://github.com/sourcegraph/scip-typescript/pull/2) Use the name scip-typescript. (#2) (@varungandhi-src)
6+
- [#126](https://github.com/sourcegraph/scip-typescript/pull/126) Use test matrix for Node v14, v16 and v18. (#126) (@varungandhi-src)
7+
- [#124](https://github.com/sourcegraph/scip-typescript/pull/124) chore(deps): update typescript-eslint monorepo to ^5.22.0 (#124) (@renovate[bot])
8+
- [#118](https://github.com/sourcegraph/scip-typescript/pull/118) chore(deps): update actions/setup-go action to v3 (#118) (@renovate[bot])
9+
- [#112](https://github.com/sourcegraph/scip-typescript/pull/112) chore(deps): update dependency ts-node to ^10.7.0 (#112) (@renovate[bot])
10+
- [#111](https://github.com/sourcegraph/scip-typescript/pull/111) chore(deps): update dependency sourcegraph/src-cli to v3.39.1 (#111) (@renovate[bot])
11+
- [#117](https://github.com/sourcegraph/scip-typescript/pull/117) chore(deps): update actions/checkout action to v3 (#117) (@renovate[bot])
12+
- [#119](https://github.com/sourcegraph/scip-typescript/pull/119) chore(deps): update actions/setup-node action to v3 (#119) (@renovate[bot])
13+
- [#102](https://github.com/sourcegraph/scip-typescript/pull/102) Add tests for command-line parser (#102) (@olafurpg)
14+
- [#114](https://github.com/sourcegraph/scip-typescript/pull/114) chore(deps): update typescript-eslint monorepo to ^5.21.0 (#114) (@renovate[bot])
15+
- [#106](https://github.com/sourcegraph/scip-typescript/pull/106) chore(deps): pin dependencies (#106) (@renovate[bot])
16+
- [#99](https://github.com/sourcegraph/scip-typescript/pull/99) Add GitHub Action to index lsif-typescript's code. (#99) (@varungandhi-src)
17+
- [#105](https://github.com/sourcegraph/scip-typescript/pull/105) Add language in README for highlighting (#105) (@varungandhi-src)
18+
19+
### v0.1.17 (2022/04/29 16:23 +00:00)
20+
21+
- [#104](https://github.com/sourcegraph/lsif-typescript/pull/104) Update ChangeLog and bump version for releasing 0.1.17. (#104) (@varungandhi-src)
522
- [#103](https://github.com/sourcegraph/lsif-typescript/pull/103) Update Node version used by Docker image (#103) (@varungandhi-src)
623
- [#101](https://github.com/sourcegraph/lsif-typescript/pull/101) Update README with brief instructions. (#101) (@varungandhi-src)
724
- [#94](https://github.com/sourcegraph/lsif-typescript/pull/94) feat: Improve hover text for common kinds of symbols (#94) (@varungandhi-src)

dev/bump-version

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,24 @@ fi
1515
echo "Updating package.json."
1616
yarn version --no-git-tag-version --new-version $1
1717
echo "Updating CHANGELOG.md."
18-
npx github-changes --only-pulls --branch main --owner sourcegraph --repository scip-typescript --title "LSIF Typescript" --tag-name "v$1" --token "$GITHUB_TOKEN"
18+
npx github-changes --only-pulls --branch main --owner sourcegraph --repository scip-typescript --tag-name "v$1" --token "$GITHUB_TOKEN"
19+
20+
# HACK: github-changes doesn't seem to have a good way to get a delta since
21+
# a particular tag to a _future_ tag; the --between-tags argument expects
22+
# that the second tag in the range to already exist, whereas what we want
23+
# to do here is first merge the ChangeLog and then add the new tag.
24+
25+
# ✅ -f, -n and -s are supported on GNU csplit and BSD csplit.
26+
csplit -f CL -n 1 -s CHANGELOG.md '/### v0.1.17/'
27+
28+
# ✅ -i<ext> works on both GNU sed and BSD sed.
29+
# See https://stackoverflow.com/a/22084103/2682729
30+
sed -i.bak -e 's/scip-typescript/lsif-typescript/g' CL1 && rm CL1.bak
31+
32+
cat CL0 CL1 > CHANGELOG.md && rm CL0 CL1
33+
1934
yarn run prettier
35+
2036
git add .
2137
TITLE="Update ChangeLog and bump version for releasing $1."
2238
git commit -m "$TITLE"

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@sourcegraph/scip-typescript",
3-
"version": "0.1.17",
3+
"version": "0.2.0",
44
"description": "SCIP indexer for TypeScript and JavaScript",
55
"publisher": "sourcegraph",
66
"bin": "dist/src/main.js",

0 commit comments

Comments
 (0)