@@ -8,7 +8,7 @@ import { Range } from './task/range/index.ts'
88import { Metrics } from './task/metrics/index.ts'
99import { Task } from 'tasksmith'
1010
11- const Version = '1.0.21 '
11+ const Version = '1.0.20 '
1212
1313// ------------------------------------------------------------------
1414// BuildPackage
@@ -33,9 +33,9 @@ const BuildPackage = (target: string = `target/build`) => Task.build.esm('src',
3333// ------------------------------------------------------------------
3434// PublishPackage
3535// ------------------------------------------------------------------
36- const PublishPackage = async ( target : string = `target/build` ) => {
36+ const PublishPackage = async ( otp : string , target : string = `target/build` ) => {
3737 const { version } = JSON . parse ( await Task . file ( `${ target } /package.json` ) . read ( ) )
38- // await Task.shell(`cd ${target} && npm publish typebox-${version}.tgz --provenance -- access=public`)
38+ await Task . shell ( `cd ${ target } && npm publish typebox-${ version } .tgz --access=public --otp ${ otp } ` )
3939 await Task . shell ( `git tag ${ version } ` )
4040 await Task . shell ( `git push origin ${ version } ` )
4141}
@@ -58,7 +58,7 @@ Task.run('local', (target: string = `../build-test/node_modules/typebox`) => Bui
5858// ------------------------------------------------------------------
5959// Publish
6060// ------------------------------------------------------------------
61- Task . run ( 'publish' , ( target : string = `target/build` ) => PublishPackage ( target ) )
61+ Task . run ( 'publish' , ( otp : string , target : string = `target/build` ) => PublishPackage ( otp , target ) )
6262// ------------------------------------------------------------------
6363// Format
6464// ------------------------------------------------------------------
0 commit comments