File tree Expand file tree Collapse file tree 3 files changed +32
-19
lines changed
Expand file tree Collapse file tree 3 files changed +32
-19
lines changed Original file line number Diff line number Diff line change @@ -36,17 +36,34 @@ jobs:
3636 if : ${{ needs.filter.outputs.js-interface == 'true' && !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name , 'release') }}
3737 steps :
3838 - uses : actions/checkout@v4
39-
40- - uses : actions /setup-node@v4
39+
40+ - uses : oven-sh /setup-bun@v2
4141 with :
42- node-version : " 18"
43- cache : " npm"
42+ bun-version : latest
4443
4544 - name : Install node modules
46- run : npm ci
45+ run : bun i --frozen-lockfile
4746
4847 - name : Run linting
49- run : npm run lint:js -- --max-warnings 0
48+ run : bun lint --max-warnings 0
49+
50+ typecheck :
51+ name : Check types 🕵️♂️
52+ runs-on : ubuntu-latest
53+ needs : [filter]
54+ if : ${{ needs.filter.outputs.js-interface == 'true' && !github.event.pull_request.draft && !contains(github.event.pull_request.labels.*.name , 'release') }}
55+ steps :
56+ - uses : actions/checkout@v4
57+
58+ - uses : oven-sh/setup-bun@v2
59+ with :
60+ bun-version : latest
61+
62+ - name : Install node modules
63+ run : bun i --frozen-lockfile
64+
65+ - name : Check types
66+ run : bun typecheck
5067
5168 build-test :
5269 name : Build & test 🛠️
@@ -63,15 +80,13 @@ jobs:
6380 echo NAVIGATION_DATA_SIGNED_URL=${{ secrets.NAVIGATION_DATA_SIGNED_URL }} >> .env
6481 echo SENTRY_URL=${{ secrets.SENTRY_URL }} >> .env
6582
66-
6783 - name : Build WASM
6884 run : ./scripts/workflow.sh
6985
70-
7186 - name : Upload WASM module to GitHub
7287 uses : actions/upload-artifact@v4
7388 with :
7489 name : msfs_navigation_data_interface
7590 path : |
7691 ./2020.zip
77- ./2024.zip
92+ ./2024.zip
Original file line number Diff line number Diff line change 55 - " !v*-rc*"
66 - " !v*-alpha*"
77 - " !v*-beta*"
8-
8+
99name : Create release
1010run-name : Create release for `${{ github.ref_name }}`
1111
@@ -36,19 +36,17 @@ jobs:
3636 steps :
3737 - uses : actions/checkout@v4
3838
39- - uses : actions /setup-node@v4
39+ - uses : oven-sh /setup-bun@v2
4040 with :
41- node-version : " 18"
42- registry-url : ' https://registry.npmjs.org'
43- cache : " npm"
41+ bun-version : latest
4442
4543 - name : Install node modules
46- run : npm ci
44+ run : bun i --frozen-lockfile
4745
4846 - name : Build JS Interface
49- run : cd src/js && npm run build
47+ run : cd src/ts && bun run build
5048
5149 - name : Publish to NPM
5250 env :
53- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
54- run : cd src/js && npm publish
51+ NPM_CONFIG_TOKEN : ${{ secrets.NPM_TOKEN }}
52+ run : cd src/ts && bun publish
Original file line number Diff line number Diff line change 11{
22 "name" : " @navigraph/msfs-navigation-data-interface" ,
3- "version" : " 1.1.1 " ,
3+ "version" : " 1.1.2 " ,
44 "description" : " JS interface that facilitates interactions with the Navigraph WASM navigation data module." ,
55 "homepage" : " https://navigraph.com" ,
66 "main" : " dist/msfs-navigation-data-interface.mjs" ,
You can’t perform that action at this time.
0 commit comments