@@ -13,6 +13,7 @@ function exec(command: string) {
1313}
1414
1515dotenv . config ( ) ;
16+ console . log ( process . env . NPM_TOKEN ) ;
1617const octokit = new Octokit ( { auth : process . env . GITHUB_TOKEN } ) ;
1718
1819( async ( ) => {
@@ -43,23 +44,23 @@ const octokit = new Octokit({ auth: process.env.GITHUB_TOKEN });
4344 await exec (
4445 `yarn --cwd dist publish --non-interactive --new-version ${ deviconVersion } `
4546 ) ;
46- console . log ( " - Creating github release" ) ;
47- const release_id = (
48- await octokit . request ( "POST /repos/{owner}/{repo}/releases" , {
49- owner : "maltejur" ,
50- repo : "react-devicons" ,
51- tag_name : `v${ deviconVersion } ` ,
52- } )
53- ) . data . id ;
54- await exec ( "zip react-devicons.zip dist -r" ) ;
55- await axios ( {
56- url : `https://uploads.github.com/repos/maltejur/react-devicons/releases/${ release_id } /assets?name=react-devicons.zip` ,
57- data : Buffer . from ( await fsAsync . readFile ( "./react-devicons.zip" ) ) ,
58- headers : {
59- Authorization : `token ${ process . env . GITHUB_TOKEN } ` ,
60- "Content-Type" : "application/zip" ,
61- } ,
62- } ) ;
47+ // console.log(" - Creating github release");
48+ // const release_id = (
49+ // await octokit.request("POST /repos/{owner}/{repo}/releases", {
50+ // owner: "maltejur",
51+ // repo: "react-devicons",
52+ // tag_name: `v${deviconVersion}`,
53+ // })
54+ // ).data.id;
55+ // await exec("zip react-devicons.zip dist -r");
56+ // await axios({
57+ // url: `https://uploads.github.com/repos/maltejur/react-devicons/releases/${release_id}/assets?name=react-devicons.zip`,
58+ // data: Buffer.from(await fsAsync.readFile("./react-devicons.zip")),
59+ // headers: {
60+ // Authorization: `token ${process.env.GITHUB_TOKEN}`,
61+ // "Content-Type": "application/zip",
62+ // },
63+ // });
6364 console . log ( "All done!" ) ;
6465 } else {
6566 console . log ( `Version up to date (${ deviconVersion } )` ) ;
0 commit comments