Skip to content

Commit 14df08e

Browse files
authored
Merge pull request #138 from DataDog/ishabi/update-release
Update release action - OIDC release
2 parents 9ed67d7 + dab3227 commit 14df08e

3 files changed

Lines changed: 6 additions & 8 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ jobs:
6868
environment: npm
6969
permissions:
7070
id-token: write
71-
env:
72-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
7371
steps:
7472
- uses: actions/checkout@v3
7573
- uses: codex-team/action-nodejs-package-info@v1.1
@@ -79,5 +77,6 @@ jobs:
7977
name: ${{ env.ARTIFACT_NAME }}-${{ steps.package.outputs.version }}
8078
- uses: actions/setup-node@v3
8179
with:
80+
node-version: '24'
8281
registry-url: 'https://registry.npmjs.org'
83-
- run: npm publish --access=public ./${{ env.ARTIFACT_NAME }}-${{ steps.package.outputs.version }}.tgz --provenance
82+
- run: npm publish --access=public ./${{ env.ARTIFACT_NAME }}-${{ steps.package.outputs.version }}.tgz

src/lib_wasm.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,13 +151,11 @@ impl FileReader<Cursor<Vec<u8>>> for WasmFileReader {
151151
Cursor::new(arr.to_vec())
152152
})
153153
.map_err(|err| {
154-
std::io::Error::new(
155-
std::io::ErrorKind::Other,
156-
format!("Error reading source map from wasm {err:?}"),
154+
std::io::Error::other(
155+
format!("Error reading source map from wasm {err:?}")
157156
)
158157
}),
159-
None => Err(std::io::Error::new(
160-
std::io::ErrorKind::Other,
158+
None => Err(std::io::Error::other(
161159
"Error reading source map. No path provided".to_string(),
162160
)),
163161
}

src/util.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ pub trait FileReader<R: Read> {
4040
}
4141
}
4242

43+
#[allow(dead_code)]
4344
pub struct DefaultFileReader {}
4445
impl FileReader<File> for DefaultFileReader {
4546
fn read(&self, path: &Path) -> std::io::Result<File>

0 commit comments

Comments
 (0)