-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (35 loc) · 1.01 KB
/
release_javascript.yml
File metadata and controls
43 lines (35 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Publish Package to npmjs
on:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Check out code
uses: actions/checkout@v6
- name: Set up Node
uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.12'
- name: Generate grammar
run: |
python -m pip install -r requirements.txt
python setup_grammar.py javascript
- name: Set VERSION from tag
working-directory: 'cratedb_sqlparse_js'
run: |
npm version ${GITHUB_REF#refs/*/v}
- name: Build package
working-directory: 'cratedb_sqlparse_js'
run: npm install && npm run build
- name: Publish
run: npm publish --provenance --access public
working-directory: 'cratedb_sqlparse_js'