Remove TOOLCHAIN from build matrix and use default Rust toolchain in release-npm workflow
Remove TOOLCHAIN from build matrix and use default Rust toolchain in release-npm workflow
Seto Elkahfi committed
Mar 28, 2026 at 21:12 UTC
2e8ce4525cf22ddc9c9f732f2f8b4766903587e5
1 file changed
+6
-9
.github/workflows/release-npm.yml
+6
-9
@@ -31,7 +31,6 @@ jobs:
31
- {
32
NAME: linux-x64-glibc,
33
OS: ubuntu-20.04,
34
- TOOLCHAIN: 1.93,
34
TARGET: x86_64-unknown-linux-gnu,
35
}
36
# Cannot cross-compile for now
@@ -44,25 +43,21 @@ jobs:
43
- {
44
NAME: win32-x64-msvc,
45
OS: windows-2022,
47
- TOOLCHAIN: 1.93,
46
TARGET: x86_64-pc-windows-msvc,
47
}
48
- {
49
NAME: win32-arm64-msvc,
50
OS: windows-2022,
53
- TOOLCHAIN: 1.93,
51
TARGET: aarch64-pc-windows-msvc,
52
}
53
- {
54
NAME: darwin-x64,
55
OS: macos-11,
59
- TOOLCHAIN: 1.93,
56
TARGET: x86_64-apple-darwin,
57
}
58
- {
59
NAME: darwin-arm64,
60
OS: macos-11,
65
- TOOLCHAIN: 1.93,
61
TARGET: aarch64-apple-darwin,
62
}
63
steps:
@@ -82,13 +77,11 @@ jobs:
77
78
- name: Install toolkit
79
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
85
- with:
86
- toolchain: ${{ matrix.build.TOOLCHAIN }}
80
81
- name: Install Rust target
82
shell: bash
83
run: |
91
- rustup target add ${{ matrix.build.TARGET }} --toolchain ${{ matrix.build.TOOLCHAIN }}
84
+ rustup target add ${{ matrix.build.TARGET }}
85
rustup target list --installed
86
87
- name: Create .env file
@@ -104,7 +97,7 @@ jobs:
97
GH_OAUTH_REDIRECT_URI: ${{ secrets.GH_OAUTH_REDIRECT_URI }}
98
shell: bash
99
run: |
107
- cargo +${{ matrix.build.TOOLCHAIN }} build --release --locked --target ${{ matrix.build.TARGET }}
100
+ cargo build --release --locked --target ${{ matrix.build.TARGET }}
101
102
- name: Install node
103
uses: actions/setup-node@v6
@@ -150,8 +143,12 @@ jobs:
143
fi
144
cp "../target/${{ matrix.build.TARGET }}/release/${cargo_bin}" "${node_pkg}/bin"
145
# publish the package
146
+ # New platform package names must be bootstrapped with NODE_AUTH_TOKEN once
147
+ # before npm trusted publishing can be configured for them.
148
cd "${node_pkg}"
149
npm publish --access public
150
+ env:
151
+ NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
152
153
publish-npm-base:
154
name: Publish the base NPM package