Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
tsov committed Sep 26, 2023
1 parent 667955d commit be863c4
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/actions/create-and-publish-snapshot-release/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,31 @@ import github, {context} from '@actions/github';
import {getExecOutput} from '@actions/exec';

export async function main() {
await getExecOutput('yarn changeset version --snapshot snapshot-release');
const token = core.getInput('token');

await getExecOutput(
'yarn changeset version --snapshot snapshot-release',
[],
{
env: {
GITHUB_TOKEN: token,
},
},
);

const releaseProcess = await getExecOutput(
'yarn release --no-git-tags --snapshot --tag snapshot-release',
[],
{
env: {
GITHUB_TOKEN: token,
},
},
);

const newTags = Array.from(
releaseProcess.stdout.matchAll(/New tag:\s+([^\s\n]+)/g),
).map(([_, tag]) => tag);

const token = core.getInput('token');
const octokit = github.getOctokit(token);

let body: string | null = null;
Expand Down

0 comments on commit be863c4

Please sign in to comment.