@@ -10,53 +10,44 @@ run-name: Create pre-release for `${{ github.ref_name }}`
10
10
11
11
jobs :
12
12
release-wasm :
13
- runs-on : windows-2022
13
+ runs-on : ubuntu
14
14
steps :
15
15
- uses : actions/checkout@v4
16
16
17
- - name : Install LLVM and Clang
18
-
19
- with :
20
- version : " 17.0.6"
21
-
22
- - name : Cache cargo-msfs
23
- uses : actions/cache@v4
24
- with :
25
- path : ~\.cargo\bin
26
- key : ${{ runner.os }}-cargo-msfs
27
-
28
- - name : Setup
29
- run : npm run setup
30
-
31
17
- name : Build WASM module
32
- run : npm run build:wasm-workflow
18
+ uses : Navigraph/cargo-msfs@v1
19
+ with :
20
+ token : ${{ secrets.BOT_TOKEN }}
21
+ run : npm run build:wasm-workflow
33
22
34
23
- name : Pre-Release
35
24
uses : softprops/action-gh-release@v1
36
25
with :
37
- files : ./out/msfs_navigation_data_interface.wasm
26
+ files :
27
+ - ./interface-2020.zip
28
+ - ./interface-2024.zip
38
29
prerelease : true
39
30
generate_release_notes : true
40
31
41
32
# Enable in future to automate publishing of NPM package
42
- release-js :
43
- runs-on : ubuntu-latest
44
- steps :
45
- - uses : actions/checkout@v4
46
-
47
- - uses : actions/setup-node@v4
48
- with :
49
- node-version : " 18"
50
- registry-url : ' https://registry.npmjs.org'
51
- cache : " npm"
52
-
53
- - name : Install node modules
54
- run : npm ci
55
-
56
- - name : Build JS Interface
57
- run : cd src/js && npm run build
58
-
59
- - name : Publish to NPM
60
- env :
61
- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
62
- run : cd src/js && npm publish --tag next
33
+ # release-js:
34
+ # runs-on: ubuntu-latest
35
+ # steps:
36
+ # - uses: actions/checkout@v4
37
+
38
+ # - uses: actions/setup-node@v4
39
+ # with:
40
+ # node-version: "18"
41
+ # registry-url: 'https://registry.npmjs.org'
42
+ # cache: "npm"
43
+
44
+ # - name: Install node modules
45
+ # run: npm ci
46
+
47
+ # - name: Build JS Interface
48
+ # run: cd src/js && npm run build
49
+
50
+ # - name: Publish to NPM
51
+ # env:
52
+ # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
53
+ # run: cd src/js && npm publish --tag next
0 commit comments