Something went wrong. Try again.
Dedicated SSR (Server-side-rendered) Astro native Headless CMS, build from the ground up for the Astro community and by Astro community memb github.com/withstudiocms/studiocms
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243#!/usr/bin/env node
import write from '@changesets/write';import ensureChangeset from './utils/ensure-changeset.mjs';
async function run() { // Get the PR number from the CI environment const PR_NUMBER = process.env.CI_PULL_REQUEST_NUMBER;
// If the PR number is not found, exit the process if (!PR_NUMBER) { console.log('No PR number found'); process.exit(0); }
// Changeset summary const summary = `chore(deps): Updated Effect dependencies (PR: #${PR_NUMBER})`;
// Check if the changeset already exists const changesetExists = await ensureChangeset(summary); if (changesetExists) { console.log('Changeset already exists'); process.exit(0); }
// Create a new changeset const changesetId = await write( { summary, releases: [ { name: '@withstudiocms/effect', type: 'patch' }, { name: 'effectify', type: 'patch' }, ], }, process.cwd() );
// Log the changeset id console.log(`Changeset created: ${changesetId}`);}
run();