Skip to content

Commit

Permalink
ci: update spfx uploader script (#2617)
Browse files Browse the repository at this point in the history
adds v prefix version to ensure that existing releases are found
  • Loading branch information
gavinbarron authored Jul 19, 2023
1 parent 97d25e8 commit 7e608e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/uploadSpfxSolution.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if (process.argv.length < 4) {
}

const auth = process.argv[2];
const version = process.argv[3];
const version = 'v' + process.argv[3];
const repo = 'microsoft-graph-toolkit';
const owner = 'microsoftgraph';
const assetPath = 'packages/mgt-spfx/sharepoint/solution/mgt-spfx.sppkg';
Expand All @@ -34,8 +34,8 @@ const octokit = new Octokit({ auth });
await octokit.rest.repos.createRelease({
owner,
repo,
tag_name: 'v' + version,
name: 'v' + version,
tag_name: version,
name: version,
draft: true
})
).data;
Expand Down

0 comments on commit 7e608e4

Please sign in to comment.