diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml new file mode 100644 index 000000000..943a1e426 --- /dev/null +++ b/.github/actions/install/action.yml @@ -0,0 +1,18 @@ +name: Install Tools & Dependencies +description: Installs pnpm, Node.js & package dependencies + +runs: + using: composite + steps: + - name: Setup pnpm (corepack enabled) + uses: pnpm/action-setup@v3 + + - name: Setup Node.js 20.x + uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 + with: + node-version-file: '.node-version' + cache: 'pnpm' + + - name: Install Dependencies + run: pnpm ci:install + shell: bash \ No newline at end of file diff --git a/.github/workflows/changesets.yml b/.github/workflows/changesets.yml deleted file mode 100644 index 02aa118cf..000000000 --- a/.github/workflows/changesets.yml +++ /dev/null @@ -1,66 +0,0 @@ -name: Changesets Release or Version Packages - -on: - workflow_dispatch: - push: - branches: - - main - -concurrency: ${{ github.workflow }}-${{ github.ref }} - -# Updated as per: https://github.com/changesets/action/issues/387#issuecomment-2336411095 -permissions: - contents: write - pull-requests: write - id-token: write - -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - - name: Setup pnpm (corepack enabled) - uses: pnpm/action-setup@v3 - - - name: Setup Node.js 20.x - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm ci:install - - - name: Create Release Pull Request or Publish to npm - id: changesets - uses: changesets/action@v1 - with: - setupGitUser: true - commit: "👷 [ci]: Version Packages" - title: "👷 [ci]: Ready for Release" - version: pnpm ci:version - publish: pnpm ci:publish - env: - GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - - name: Add Label to CI PR - if: ${{ steps.changesets.outputs.hasChangesets == 'true' }} - run: gh pr edit "$PR_URL" --add-label "ci" - env: - PR_URL: ${{ steps.changesets.outputs.pull_request_url }} - GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - - - name: Create Sentry release - if: steps.changesets.outputs.published == 'true' - uses: getsentry/action-release@v1 - env: - SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - SENTRY_ORG: withstudiocms - SENTRY_URL: https://sentry.studiocms.dev/ - with: - environment: production - projects: node-playground ui-testing diff --git a/.github/workflows/ci-first-time-contributor.yml b/.github/workflows/ci-first-time-contributor.yml new file mode 100644 index 000000000..1d300a926 --- /dev/null +++ b/.github/workflows/ci-first-time-contributor.yml @@ -0,0 +1,61 @@ +name: CI - First Time Contributor + +on: + issues: + types: [opened] + pull_request_target: + types: [opened, closed] + +jobs: + check_for_first_interaction: + name: Check for First Interaction + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: First Interaction Check + uses: zephyrproject-rtos/action-first-interaction@7e6446f8439d8b4399169880c36a3a12b5747699 + with: + repo-token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} + issue-message: > + Hi @${{ github.event.issue.user.login }} 👋 + + Welcome to the StudioCMS project! We're excited to have you here. Thanks for opening your first issue! 🎉 + + If you have not already and your issue is related to a bug, please make sure to include the following information in your issue: + - A clear description of the issue + - Steps to reproduce the issue + - Expected behavior + - Actual behavior + - StudioCMS version + - Environment details (OS, hardware, etc.) + + If you have any questions or need help, feel free to ask. We're here to help you! 🚀 + + If you're interested in contributing to the project, please check out our [Contributing Guide](https://github.com/withstudiocms/.github/blob/main/CONTRIBUTING.md) and join our [Discord community](https://chat.studiocms.dev) to stay in the loop for any future help we may need! + + Thanks again for opening your first issue! 🙌 + + - The StudioCMS Team + + pr-opened-message: > + Hello @${{ github.event.pull_request.user.login }}, and thank you for opening your first pull request to StudioCMS! 🎉 + + If you have not already, please make sure to review the project's [Contributing Guide](https://github.com/withstudiocms/.github/blob/main/CONTRIBUTING.md) to ensure your pull request meets our quality standards. + + We're excited to have you here and appreciate your contribution. If you have not already, please make sure to include the following information in your pull request: + - A clear description of the changes + - Steps to reproduce the issue (if applicable) + - Any relevant screenshots or logs + + Our team will review your pull request as soon as possible. If you have any questions or need help, feel free to ask. We're here to help you! 🚀 + + In the meantime, you will notice that a few checks will run on your pull request. These checks are automated and help us ensure that your changes meet our quality standards. If you see any errors or warnings, don't worry! Our team will help you address them. 😊 + + pr-merged-message: > + **Congrats and Welcome** @${{ github.event.pull_request.user.login }} to the Contributor Squad! 🎉 + + If you haven't already, please join our [Discord community](https://chat.studiocms.dev) to stay in the loop for any future help we may need! + + - The StudioCMS Team \ No newline at end of file diff --git a/.github/workflows/delabeler.yml b/.github/workflows/ci-labeler.yml similarity index 76% rename from .github/workflows/delabeler.yml rename to .github/workflows/ci-labeler.yml index 69da85c50..005df4af4 100644 --- a/.github/workflows/delabeler.yml +++ b/.github/workflows/ci-labeler.yml @@ -1,17 +1,29 @@ -name: Remove labels from merged PRs and issues +name: CI - Label Management + on: pull_request_target: - types: - - closed issues: types: - closed - + permissions: + contents: read pull-requests: write issues: write - + jobs: + add-labels: + name: Label PRs + if: github.event_name == 'pull_request_target' && github.event.pull_request.state == 'open' + runs-on: ubuntu-latest + steps: + - name: Label PRs + uses: actions/labeler@v5 + with: + repo-token: "${{ secrets.STUDIOCMS_SERVICE_TOKEN }}" + configuration-path: .github/labeler.yml + sync-labels: true + remove-merged-pr-labels: name: Remove merged pull request labels if: github.event.pull_request.merged diff --git a/.github/workflows/ci-pr-comment.yml b/.github/workflows/ci-pr-comment.yml new file mode 100644 index 000000000..21b3d8165 --- /dev/null +++ b/.github/workflows/ci-pr-comment.yml @@ -0,0 +1,32 @@ +name: Comment on Pull Request + +on: + pull_request: + types: [opened, reopened] + +jobs: + post-deployment-links: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Comment PR + uses: thollander/actions-comment-pull-request@v3 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + message: | + Thanks for opening this pull request! 🎉 + + The following links will become available for preview shortly (if applicable): + - [StudioCMS Documentation](https://pr${{ github.event.pull_request.number }}.docs.studiocms.dev/) + - [StudioCMS Demo (playgrounds/node)](https://pr${{ github.event.pull_request.number }}.demo.studiocms.dev/) + - [StudioCMS Ui Demo (playgrounds/ui)](https://pr${{ github.event.pull_request.number }}.ui-testing.studiocms.dev/) + + TEMPORARILY DISABLED: The StudioCMS Demo (playgrounds/node) link is currently disabled due to ongoing development on the next version. We apologize for the inconvenience and appreciate your understanding. 🙏 + + - [StudioCMS Next-Demo (playgrounds/node)](https://pr${{ github.event.pull_request.number }}.next-demo.studiocms.dev/) (Temporarily available for preview's on the next version) + + Note: Changes may take a few minutes to propagate. Please be patient! You can also see the status of each deployment via the withstudiocms-deployments bot 🤖 comments. + + Please review the changes and provide any feedback. Thanks! 🚀 \ No newline at end of file diff --git a/.github/workflows/translation-changesets.yml b/.github/workflows/ci-pr-i18n-changeset.yml similarity index 71% rename from .github/workflows/translation-changesets.yml rename to .github/workflows/ci-pr-i18n-changeset.yml index 5924f4d4a..2ae9e91d6 100644 --- a/.github/workflows/translation-changesets.yml +++ b/.github/workflows/ci-pr-i18n-changeset.yml @@ -1,8 +1,8 @@ name: Translation Changesets on: - pull_request: - types: [labeled, synchronize] + pull_request: + types: [labeled, synchronize] permissions: contents: write @@ -18,18 +18,8 @@ jobs: ref: ${{ github.head_ref }} token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - - name: Setup pnpm (corepack enabled) - uses: pnpm/action-setup@v3 - - - name: Setup Node.js 20.x - uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm ci:install - shell: bash + - name: Install Tools & Dependencies + uses: ./.github/actions/install - name: Create Translation Changesets run: pnpm translations:changeset diff --git a/.github/workflows/lunaria.yml b/.github/workflows/ci-pr-lunaria-overview.yml similarity index 70% rename from .github/workflows/lunaria.yml rename to .github/workflows/ci-pr-lunaria-overview.yml index 2b0f64bd3..dfbb09f53 100644 --- a/.github/workflows/lunaria.yml +++ b/.github/workflows/ci-pr-lunaria-overview.yml @@ -1,4 +1,4 @@ -name: Lunaria +name: CI - Lunaria Overview Generation on PRs on: pull_request_target: @@ -20,16 +20,8 @@ jobs: fetch-depth: 0 token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - - name: Setup Node - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Setup PNPM - uses: pnpm/action-setup@v3 - - - run: pnpm install + - name: Install Tools & Dependencies + uses: ./.github/actions/install - name: Generate Lunaria Overview uses: lunariajs/action@astro-docs diff --git a/.github/workflows/ci-pr-snapshots.yml b/.github/workflows/ci-pr-snapshots.yml new file mode 100644 index 000000000..bd19cf47b --- /dev/null +++ b/.github/workflows/ci-pr-snapshots.yml @@ -0,0 +1,21 @@ +name: CI - Snapshot Release on PRs + +on: + pull_request: + paths: + - 'packages/**' + +jobs: + release: + name: Pkg-pr-new Snapshot Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Install Tools & Dependencies + uses: ./.github/actions/install + + - name: Publish packages + run: pnpm ci:snapshot + \ No newline at end of file diff --git a/.github/workflows/ci-push-main.yml b/.github/workflows/ci-push-main.yml new file mode 100644 index 000000000..1b8539a15 --- /dev/null +++ b/.github/workflows/ci-push-main.yml @@ -0,0 +1,148 @@ +name: CI - Push to Main + +on: + workflow_dispatch: + inputs: + importAll: + default: false + required: false + type: boolean + description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing. (requires run_todo_bot to be true) + push: + branches: + - main + +concurrency: ${{ github.workflow }}-${{ github.ref }} + +permissions: + issues: write + repository-projects: read + contents: write + pull-requests: write + pages: write + id-token: write + +jobs: + format: + name: Format Code + runs-on: ubuntu-latest + env: + NODE_OPTIONS: "--max_old_space_size=4096" + steps: + - name: Checkout Repo + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + with: + ref: ${{ github.head_ref }} + token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} + + - name: Install Tools & Dependencies + uses: ./.github/actions/install + + - name: Format code + run: pnpm run lint:fix + + - name: Commit changes + uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5 + with: + commit_message: '[ci] lint' + branch: ${{ github.head_ref }} + commit_user_name: studiocms-no-reply + commit_user_email: no-reply@studiocms.dev + commit_author: StudioCMS + + todo-auto-issue: + name: Create issues from TODOs + if: ${{ github.event_name == 'push' }} + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Run Todo Issue Bot + uses: juulsn/todo-issue@main + with: + excludePattern: '^(node_modules/)' + autoAssign: false + env: + GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} + + mergebot: + name: Merge Bot + if: ${{ github.repository_owner == 'withstudiocms' && github.event_name != 'workflow_dispatch' && github.event.commits[0].message != '[ci] lint' }} + uses: withstudiocms/automations/.github/workflows/mergebot.yml@main + secrets: + DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }} + + changeset-release: + name: Changeset Release + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 + + - name: Install Tools & Dependencies + uses: ./.github/actions/install + + - name: Create Release Pull Request or Publish to npm + id: changesets + uses: changesets/action@v1 + with: + setupGitUser: true + commit: "👷 [ci]: Version Packages" + title: "👷 [ci]: Ready for Release" + version: pnpm ci:version + publish: pnpm ci:publish + env: + GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + + - name: Add Label to CI PR + if: ${{ steps.changesets.outputs.hasChangesets == 'true' }} + run: gh pr edit "$PR_URL" --add-label "ci" + env: + PR_URL: ${{ steps.changesets.outputs.pull_request_url }} + GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} + + - name: Create Sentry release + if: steps.changesets.outputs.published == 'true' + uses: getsentry/action-release@v1 + env: + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} + SENTRY_ORG: withstudiocms + SENTRY_URL: https://sentry.studiocms.dev/ + with: + environment: production + projects: node-playground ui-testing + +# TODO: Migrate Lunaria workflows here once PR#333 is ready to be merged +# lunaria-build: +# name: Build Lunaria Overview +# runs-on: ubuntu-latest +# steps: +# - name: Checkout +# uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 +# with: +# fetch-depth: 0 +# token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} + +# - name: Install Tools & Dependencies +# uses: ./.github/actions/install + +# - name: Build Lunaria Overview +# run: pnpm lunaria:build + +# - name: Upload Overview +# uses: actions/upload-pages-artifact@v3 +# with: +# path: "www/docs/dist/lunaria/" + +# lunaria-deploy: +# name: Deploy Lunaria Overview +# runs-on: ubuntu-latest +# needs: lunaria-build +# environment: +# name: github-pages +# url: ${{ steps.lunaria-build.outputs.page_url }} +# steps: +# - name: Deploy to GitHub Pages +# uses: actions/deploy-pages@v4 \ No newline at end of file diff --git a/.github/workflows/lunaria-report-bot.yml b/.github/workflows/ci-report-lunaria.yml similarity index 68% rename from .github/workflows/lunaria-report-bot.yml rename to .github/workflows/ci-report-lunaria.yml index a9c24b6ea..fc52710b4 100644 --- a/.github/workflows/lunaria-report-bot.yml +++ b/.github/workflows/ci-report-lunaria.yml @@ -1,4 +1,4 @@ -name: Translation Report Bot +name: CI - Translation Report Bot on: schedule: @@ -12,27 +12,19 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: fetch-depth: 0 - - name: Setup PNPM - uses: pnpm/action-setup@v3 - - - name: Setup Node - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm install + - name: Install Tools & Dependencies + uses: ./.github/actions/install - id: message name: Format Discord message run: pnpm tsm --require=./scripts/filter-warnings.cjs ./www/docs/scripts/lunaria-report-bot.ts discord_message: + name: Send Discord Message uses: withstudiocms/automations/.github/workflows/discord-msg.yml@main needs: translation secrets: diff --git a/.github/workflows/coauthor.yml b/.github/workflows/coauthor.yml index 2be0ec9d5..476c2ac7a 100644 --- a/.github/workflows/coauthor.yml +++ b/.github/workflows/coauthor.yml @@ -1,15 +1,16 @@ name: Write coauthors to a pull request -permissions: - pull-requests: write on: issue_comment: types: - created +permissions: + pull-requests: write + jobs: generate-coauthors: - name: Generate Coauthor + name: Generate Coauthor List if: ${{ github.event.issue.pull_request }} runs-on: ubuntu-latest steps: diff --git a/.github/workflows/deployments.yml b/.github/workflows/deployments.yml deleted file mode 100644 index 3f2b554ec..000000000 --- a/.github/workflows/deployments.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: StudioCMS Deployments - -on: - pull_request_target: - types: [assigned, opened, reopened] - -permissions: - pull-requests: write - -jobs: - deploymentmessage: - name: Send deployment links - runs-on: ubuntu-latest - steps: - - name: Deployment Queued Comment - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 - with: - github-token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - script: | - github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `Thank you for submitting your Pull Request, the following links will become available for preview shortly:\n - - [StudioCMS Documentation](https://pr${context.payload.pull_request.number}.docs.studiocms.dev/)\n - - [StudioCMS Demo (node-playground)](https://pr${context.payload.pull_request.number}.demo.studiocms.dev/) (Also deployed with package changes)\n - - [StudioCMS Ui Demo (ui-playground)](https://pr${context.payload.pull_request.number}.ui-testing.studiocms.dev/)` - }) diff --git a/.github/workflows/firsttimepr.yml b/.github/workflows/firsttimepr.yml deleted file mode 100644 index 4339914d3..000000000 --- a/.github/workflows/firsttimepr.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: First time PR merged Check - -on: - pull_request: - types: [closed] - -permissions: - pull-requests: write - actions: write - issues: write - -jobs: - welcome: - runs-on: ubuntu-latest - steps: - - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7 - with: - github-token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - script: | - if (context.payload.pull_request.merged) { - const creator = context.payload.pull_request.user.login - const owner = context.repo.owner - const repo = context.repo.repo - const res = await github.rest.search.issuesAndPullRequests({ - q: `is:pr is:closed author:${creator} repo:${owner}/${repo}` - }) - - const mergedPRs = res.data.items.filter(pr => pr.number !== context.payload.pull_request.number) - - if (mergedPRs.length === 0) { - await github.rest.issues.createComment({ - issue_number: context.issue.number, - owner: context.repo.owner, - repo: context.repo.repo, - body: `**Welcome** @${creator}, to the Contributor Squad! 🎉\n\nIf you haven't already, please join our [Discord community](https://chat.studiocms.dev), to stay in the loop for any future help we may need!` - }) - - await fetch(`${{ secrets.DISCORD_FTPR }}`, { - method: 'POST', - headers: { - 'Accept': 'application/json', - 'Content-Type': 'application/json' - }, - body: JSON.stringify({ - content: `<@&${{ secrets.DISCORD_ROLE_HONOURED }}>, <@&${{ secrets.DISCORD_ROLE_REVERED }}>, <@&${{ secrets.DISCORD_ROLE_EXALTED }}>`, - tts: false, - embeds: [ - { - "id": 661098315, - "description": `New StudioCMS Contributor - ${creator} has had their first PR merged! 🎉\nMerged PR: [PR# ${context.issue.number}](https://github.com/withstudiocms/studiocms/pull/${context.issue.number})`, - "fields": [], - "author": { - "name": "StudioCMS Contributor Alert", - "icon_url": "https://github.com/withstudiocms/studiocms.dev/blob/main/assets/logo-discord.png?raw=true" - }, - "title": "🚨 FIRST TIME CONTRIBUTOR 🚨" - } - ], - components: [], - actions: {} - }) - }) - } - } diff --git a/.github/workflows/format.yml b/.github/workflows/format.yml deleted file mode 100644 index 38664c5d1..000000000 --- a/.github/workflows/format.yml +++ /dev/null @@ -1,47 +0,0 @@ -name: 'Format Code' - -on: - workflow_dispatch: - push: - branches: - - main - -permissions: - contents: write - -jobs: - format: - runs-on: ubuntu-latest - env: - NODE_OPTIONS: "--max_old_space_size=4096" - steps: - - name: Check out code using Git - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - with: - ref: ${{ github.head_ref }} - token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - - - name: Setup PNPM - uses: pnpm/action-setup@v3 - - - name: Setup Node - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: pnpm - - - name: Install dependencies - run: pnpm ci:install - shell: bash - - - name: Format code - run: pnpm run lint:fix - - - name: Commit changes - uses: stefanzweifel/git-auto-commit-action@8621497c8c39c72f3e2a999a26b4ca1b5058a842 # v5 - with: - commit_message: '[ci] lint' - branch: ${{ github.head_ref }} - commit_user_name: studiocms-no-reply - commit_user_email: no-reply@studiocms.dev - commit_author: StudioCMS diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml deleted file mode 100644 index 8a76c8118..000000000 --- a/.github/workflows/labeler.yml +++ /dev/null @@ -1,17 +0,0 @@ -name: Pull Request Labeler - -on: [pull_request_target] - -permissions: - contents: read - pull-requests: write - -jobs: - label: - runs-on: ubuntu-latest - steps: - - uses: actions/labeler@v5 - with: - repo-token: "${{ secrets.STUDIOCMS_SERVICE_TOKEN }}" - configuration-path: .github/labeler.yml - sync-labels: true \ No newline at end of file diff --git a/.github/workflows/lunaria-build.yml b/.github/workflows/lunaria-build.yml index 60fd2d673..65de2bbc5 100644 --- a/.github/workflows/lunaria-build.yml +++ b/.github/workflows/lunaria-build.yml @@ -1,10 +1,10 @@ name: Lunaria Deployments +# TODO: Remove this once PR#333 is ready to merged and uncomment in .github/workflows/ci-push-main.yml + on: push: branches: - # - main - # TODO: Remove issue-304 from the list of branches and enable main once PR#333 is ready to merged - issue-0304 jobs: @@ -13,22 +13,13 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v4 + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 with: fetch-depth: 0 token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }} - - name: Setup PNPM - uses: pnpm/action-setup@v3 - - - name: Setup Node - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm install + - name: Install Tools & Dependencies + uses: ./.github/actions/install - name: Build Lunaria Overview run: pnpm lunaria:build diff --git a/.github/workflows/mergebot.yml b/.github/workflows/mergebot.yml deleted file mode 100644 index 514990093..000000000 --- a/.github/workflows/mergebot.yml +++ /dev/null @@ -1,12 +0,0 @@ -name: mergebot - -on: - push: - branches: [main] - -jobs: - mergebot: - if: ${{ github.repository_owner == 'withstudiocms' }} - uses: withstudiocms/automations/.github/workflows/mergebot.yml@main - secrets: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK_MERGEBOT }} diff --git a/.github/workflows/snapshop-release.yml b/.github/workflows/snapshop-release.yml deleted file mode 100644 index c27e3f91a..000000000 --- a/.github/workflows/snapshop-release.yml +++ /dev/null @@ -1,30 +0,0 @@ -name: snapshot Release - -on: - pull_request: - paths: - - 'packages/**' - -jobs: - release: - name: Release - runs-on: ubuntu-latest - steps: - - name: Checkout Repo - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - - name: Setup pnpm (corepack enabled) - uses: pnpm/action-setup@v3 - - - name: Setup Node.js 20.x - uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4 - with: - node-version-file: '.node-version' - cache: 'pnpm' - - - name: Install Dependencies - run: pnpm ci:install - - - name: Publish packages - run: pnpm ci:snapshot - \ No newline at end of file diff --git a/.github/workflows/todo-auto-issue.yml b/.github/workflows/todo-auto-issue.yml deleted file mode 100644 index e2021f3d4..000000000 --- a/.github/workflows/todo-auto-issue.yml +++ /dev/null @@ -1,33 +0,0 @@ -name: Create issues from TODOs - -on: - workflow_dispatch: - inputs: - importAll: - default: false - required: false - type: boolean - description: Enable, if you want to import all TODOs. Runs on checked out branch! Only use if you're sure what you are doing. - push: - branches: - - main - -permissions: - issues: write - repository-projects: read - contents: read - -jobs: - todos: - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 - - - name: Run Todo Issue Bot - uses: juulsn/todo-issue@main - with: - excludePattern: '^(node_modules/)' - autoAssign: false - env: - GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}