From bad20c0db2b93fe78c0380d10de9262fda0744cd Mon Sep 17 00:00:00 2001 From: Carlos Santiago <5726971+csantiago132@users.noreply.github.com> Date: Wed, 23 Oct 2024 18:07:19 -0500 Subject: [PATCH] refactor(config): updates prerelease branch names --- .github/workflows/composite.release.yml | 9 +++++++-- package.json | 20 ++++++++++---------- 2 files changed, 17 insertions(+), 12 deletions(-) diff --git a/.github/workflows/composite.release.yml b/.github/workflows/composite.release.yml index ebffe9e..3fec2ed 100644 --- a/.github/workflows/composite.release.yml +++ b/.github/workflows/composite.release.yml @@ -12,8 +12,13 @@ jobs: release: runs-on: ubuntu-latest if: | - github.event_name == 'push' && - github.ref == 'refs/heads/main' + github.event_name == 'push' && ( + github.ref == 'refs/heads/alpha' || + github.ref == 'refs/heads/beta' || + github.ref == 'refs/heads/canary' || + github.ref == 'refs/heads/main' || + github.ref == 'refs/heads/pre/rc' + ) steps: - name: Checkout uses: actions/checkout@v4 diff --git a/package.json b/package.json index 0ade89a..ce82e41 100644 --- a/package.json +++ b/package.json @@ -11,6 +11,16 @@ "url": "https://github.com/Kurocado-Studio/styleguide.git" }, "license": "MPL-2.0", + "scripts": { + "commitlint": "pnpm exec commitlint --edit", + "eslint-check": "eslint --max-warnings=0 .", + "prepare": "husky install", + "prettier-check": "prettier --check .", + "prettier-fix": "prettier --check . --write", + "semantic-release": "semantic-release", + "test": "echo \"no test specified\" && exit 0", + "build": "echo \"no build needed\" && exit 0" + }, "exports": { "./eslint/base": "./src/eslint/eslint.base.js", "./eslint/browser": "./src/eslint/eslint.browser.js", @@ -39,16 +49,6 @@ "src/semantic-release", "src/tsconfig" ], - "scripts": { - "commitlint": "pnpm exec commitlint --edit", - "eslint-check": "eslint --max-warnings=0 .", - "prepare": "husky install", - "prettier-check": "prettier --check .", - "prettier-fix": "prettier --check . --write", - "semantic-release": "semantic-release", - "test": "echo \"no test specified\" && exit 0", - "build": "echo \"no build needed\" && exit 0" - }, "lint-staged": { "*": [ "pnpm run commitlint",