From baa29d5bd03f5675e288e0b6187408934c889af7 Mon Sep 17 00:00:00 2001 From: Dustin Ruetz Date: Thu, 4 Apr 2024 16:34:09 -0400 Subject: [PATCH] feat(release.config.cjs): initial configuration file for semantic-release --- .github/workflows/release.yml | 4 ++-- release.config.cjs | 14 ++++++++++++++ 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 release.config.cjs diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index de6bdbc..d32510f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -3,6 +3,7 @@ name: Release on: push: branches: + # TODO: This branch is for PR testing purposes, update to "main" if we proceed with this PR. - ruetz-automate-releases workflow_run: workflows: ["Lint", "Run acceptance tests"] @@ -39,5 +40,4 @@ jobs: - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release --branches ruetz-automate-releases --dry-run + run: npx semantic-release diff --git a/release.config.cjs b/release.config.cjs new file mode 100644 index 0000000..5ceb2d7 --- /dev/null +++ b/release.config.cjs @@ -0,0 +1,14 @@ +/** + * @type {import('semantic-release').GlobalConfig} + */ +module.exports = { + // TODO: This branch is for PR testing purposes, update to "main" if we proceed with this PR. + branches: ["ruetz-automate-releases"], + // TODO: Remove `dryRun` configuration if we proceed with this PR. + dryRun: true, + plugins: [ + "@semantic-release/commit-analyzer", + "@semantic-release/release-notes-generator", + "@semantic-release/github", + ], +};