Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions .github/workflows/release_javascript.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
2 changes: 1 addition & 1 deletion setup_grammar.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down