Skip to content

Commit db05cac

Browse files
committed
v0.0.6
1 parent c4724a5 commit db05cac

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/publish-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
retention-days: 7
6666

6767
- name: Upload binaries to GitHub Release
68-
run: npx node-pre-gyp-github publish
68+
run: node ./scripts/ghPublish.mjs
6969
if: matrix.node == 16 && startsWith(github.ref, 'refs/tags/')
7070
env:
7171
NODE_PRE_GYP_GITHUB_TOKEN: ${{ github.token }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "tree-sitter-sfapex",
3-
"version": "0.0.5",
3+
"version": "0.0.6",
44
"description": "A tree-sitter implementation for Apex, SOQL, and SOSL",
55
"homepage": "https://github.com/aheber/tree-sitter-sfapex",
66
"bugs": {

scripts/ghPublish.mjs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import NodePreGypGithub from "node-pre-gyp-github";
2+
try {
3+
const opts = {
4+
draft: false,
5+
verbose: false,
6+
target_commitish: "main",
7+
};
8+
const nodePreGypGithub = new NodePreGypGithub();
9+
await nodePreGypGithub.publish(opts);
10+
} catch (err) {
11+
console.error(`An error occurred whilst publishing:`, err);
12+
process.exit(1);
13+
}

0 commit comments

Comments
 (0)