From d68a3a1ba403a130e6851fcef7e0f8c7fc80693a Mon Sep 17 00:00:00 2001 From: surister Date: Mon, 6 Oct 2025 13:16:23 +0200 Subject: [PATCH 1/2] Try setting also the NPM_TOKEN in npmrc --- .github/workflows/release_javascript.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release_javascript.yml b/.github/workflows/release_javascript.yml index 890a916..a6e8f54 100644 --- a/.github/workflows/release_javascript.yml +++ b/.github/workflows/release_javascript.yml @@ -18,8 +18,12 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Manually set .npmrc - run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./cratedb_sqlparse_js/.npmrc - + run: | + # The token works fine in my own .npmjs, but for some reason the .npmrc that is being set up + # is not being picked up, manually setting the first line didnt work, maybe its the second? + # we might need + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ./cratedb_sqlparse_js/.npmrc + echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc - name: Set up Python uses: actions/setup-python@v6 with: @@ -39,7 +43,7 @@ jobs: working-directory: 'cratedb_sqlparse_js' run: npm install && npm run build - - run: npm publish --provenance --access public + - run: npm publish --provenance --access public --registry=https://registry.npmjs.org/:authToken=${{ secrets.NPM_TOKEN }} working-directory: 'cratedb_sqlparse_js' env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} From 4b2d1c03a123df07734fe6cdb324c229c0543e1d Mon Sep 17 00:00:00 2001 From: surister Date: Mon, 6 Oct 2025 13:17:25 +0200 Subject: [PATCH 2/2] Set CrateDB version to 6.0.2 --- setup_grammar.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup_grammar.py b/setup_grammar.py index 1f21e1e..6a264c3 100644 --- a/setup_grammar.py +++ b/setup_grammar.py @@ -161,7 +161,7 @@ def set_version(target: Antlr4Target, version: str): setup_logging() input_target = sys.argv[1] - version = '5.10.7' + version = '6.0.2' if input_target.startswith("py"): target = Antlr4Target.python