@@ -68,40 +68,42 @@ async function publish() {
6868 console . log ( ` 3. Major (${ suggestedMajor } ) - Breaking changes` ) ;
6969 console . log ( ' 4. Custom version' ) ;
7070
71- const versionChoice = await rl . question ( '\n🔢 Select version increment (1-4): ' ) ;
72- let newVersion ;
73-
74- switch ( versionChoice . trim ( ) ) {
75- case '1' : {
76- newVersion = suggestedPatch ;
77- break ;
78- }
79-
80- case '2' : {
81- newVersion = suggestedMinor ;
82- break ;
83- }
84-
85- case '3' : {
86- newVersion = suggestedMajor ;
87- break ;
88- }
89-
90- case '4' : {
91- newVersion = await rl . question ( 'Enter custom version (e.g., 1.0.0-beta.1): ' ) ;
92- if ( ! semver . valid ( newVersion ) ) {
93- console . error ( '❌ Invalid semantic version. Aborting.' ) ;
94- process . exit ( 1 ) ;
95- }
96-
97- break ;
98- }
99-
100- default : {
101- console . error ( '❌ Invalid choice. Aborting.' ) ;
102- process . exit ( 1 ) ;
103- }
104- }
71+ const newVersion = currentVersion ;
72+
73+ // const versionChoice = await rl.question('\n🔢 Select version increment (1-4): ');
74+ // let newVersion;
75+ //
76+ // switch (versionChoice.trim()) {
77+ // case '1': {
78+ // newVersion = suggestedPatch;
79+ // break;
80+ // }
81+ //
82+ // case '2': {
83+ // newVersion = suggestedMinor;
84+ // break;
85+ // }
86+ //
87+ // case '3': {
88+ // newVersion = suggestedMajor;
89+ // break;
90+ // }
91+ //
92+ // case '4': {
93+ // newVersion = await rl.question('Enter custom version (e.g., 1.0.0-beta.1): ');
94+ // if (!semver.valid(newVersion)) {
95+ // console.error('❌ Invalid semantic version. Aborting.');
96+ // process.exit(1);
97+ // }
98+ //
99+ // break;
100+ // }
101+ //
102+ // default: {
103+ // console.error('❌ Invalid choice. Aborting.');
104+ // process.exit(1);
105+ // }
106+ // }
105107
106108 console . log ( `\n✅ Publishing version: ${ newVersion } \n` ) ;
107109
@@ -131,11 +133,11 @@ async function publish() {
131133 console . warn ( '⚠️ Warning: No README.md found. Consider adding one.' ) ;
132134 }
133135
134- // Check for /docs folder
136+ // Check for /dist/ docs folder
135137 let docsFiles = [ ] ;
136- if ( fs . existsSync ( './docs' ) ) {
137- console . log ( '📚 /docs folder found' ) ;
138- docsFiles = scanDocsFolder ( './docs' ) ;
138+ if ( fs . existsSync ( './dist/ docs' ) ) {
139+ console . log ( '📚 /dist/ docs folder found' ) ;
140+ docsFiles = scanDocsFolder ( './dist/ docs' ) ;
139141 console . log ( ` Found ${ docsFiles . length } documentation files` ) ;
140142 }
141143
@@ -236,7 +238,7 @@ function getApiToken() {
236238 }
237239
238240 const credentials = JSON . parse ( fs . readFileSync ( CREDENTIALS_PATH , 'utf8' ) ) ;
239- return credentials . apiToken ;
241+ return credentials . accessToken ;
240242 } catch {
241243 return null ;
242244 }
0 commit comments