Skip to content

Commit 540218c

Browse files
authored
refactor: Remove NPM_TOKEN from publish-npm.js
Removed NPM_TOKEN usage for authentication in publish script, as we'd like to switch to trusted publishing.
1 parent c35e78c commit 540218c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

scripts/github/publish-npm.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env node
22
import { execSync } from 'node:child_process';
33

4-
const { VALID_SEMVER_VERSION, NPM_TOKEN } = process.env;
4+
const { VALID_SEMVER_VERSION } = process.env;
55
const RELEASE = process.env.RELEASE === 'true';
66
const PRE_RELEASE = process.env.PRE_RELEASE === 'true';
77

@@ -80,7 +80,6 @@ for (const REGISTRY of registries) {
8080

8181
if (REGISTRY === 'NPM') {
8282
execSync('npm config set @db-ux:registry https://registry.npmjs.org/');
83-
execSync(`npm set //registry.npmjs.org/:_authToken ${NPM_TOKEN}`);
8483
console.log('🔑 Authenticated with NPM');
8584
} else {
8685
console.error(`Could not authenticate with ${REGISTRY}`);

0 commit comments

Comments
 (0)