Skip to content

Commit c10b736

Browse files
Fix/trusted publisher OIDC auth (#5401)
* Correcting trusted publisher setup
1 parent 6e48df6 commit c10b736

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,5 @@ jobs:
4545

4646
- name: Publishing next version
4747
run: ./publish/publish-next.js
48+
env:
49+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish/publish-next.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const publishNext = () => {
1313
fs.writeFileSync("./dist/package.json", JSON.stringify(pkgJson, null, 2));
1414

1515
try {
16-
execSync("cd dist && npm publish --tag next");
16+
execSync("cd dist && npm publish --tag next", { stdio: "inherit" });
1717
} catch (e) {
1818
console.log(e);
1919
console.log("Next publish failed.");
@@ -33,7 +33,7 @@ fetch(`https://registry.npmjs.org/baseui`)
3333
delete pkgJson.scripts.prepare;
3434
fs.writeFileSync("./dist/package.json", JSON.stringify(pkgJson, null, 2));
3535
try {
36-
execSync("cd dist && npm publish");
36+
execSync("cd dist && npm publish", { stdio: "inherit" });
3737
} catch (e) {
3838
console.log(e);
3939
console.log("Stable publish failed.");

0 commit comments

Comments
 (0)