Skip to content

Commit

Permalink
Update various actions and package info
Browse files Browse the repository at this point in the history
  • Loading branch information
Adammatthiesen committed Nov 24, 2024
1 parent df9283a commit dd41f8c
Show file tree
Hide file tree
Showing 18 changed files with 101 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "astrolicious/studiocms" }],
"changelog": ["@changesets/changelog-github", { "repo": "withstudiocms/studiocms" }],
"commit": false,
"fixed": [
[
Expand Down
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM mcr.microsoft.com/devcontainers/javascript-node:1-20@sha256:f28172ab4f8cf57dacadc4d2aecf6d108bd9881617bd133b16ddcff6e6eef340
FROM mcr.microsoft.com/devcontainers/javascript-node:1-20@sha256:8f4a68a4ebc64c814b962f4a41bbb1116b17f41b2e717d6d81d0ae24f73e1670

# Enable Proto
RUN curl -fsSL https://moonrepo.dev/install/proto.sh | bash -s -- --yes
Expand Down
18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/new-chore.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: New Chore
about: Used to create a new Chore for a needed task
title: "Chore: [NAME]"
labels: chore
---

**Is your chore related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<!-- Thank you for opening a PR! We really appreciate you taking the time to help out 🙌 -->

#### Description

- Closes # <!-- If aplicable add an issue number to this PR so it can be closed otherwise feel free to remove this. -->
- What does this PR change? Give us a brief description.

<!--
Here’s what will happen next:
One of our maintainers will review your pull request as soon as possible. We strive to provide feedback within a day, but please understand that responses may occasionally take longer depending on the circumstance and our availability. If we request any changes, please feel free to ask for clarification or provide additional context. We appreciate your patience and contribution to the project.
-->
2 changes: 1 addition & 1 deletion .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"ignorePaths": ["**/node_modules/**", "**/bower_components/**"],
"labels": ["dependencies"],
"additionalBranchPrefix": "{{parentDir}}-",
"gitIgnoredAuthors": ["no-reply@studiocms.xyz"],
"gitIgnoredAuthors": ["no-reply@studiocms.dev"],
"prHourlyLimit": 3,
"rangeStrategy": "bump",
"reviewers": ["team:exalted"],
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
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@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/changeset-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ steps.refs.outputs.head_ref }}
fetch-depth: 0
Expand All @@ -84,7 +84,7 @@ jobs:
uses: pnpm/action-setup@v2

- name: Setup Node.js 20.x
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: '.node-version'
cache: 'pnpm'
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Check out code using Git
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -29,7 +29,7 @@ jobs:
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: '.node-version'
cache: pnpm
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coauthor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,5 @@ jobs:
if: ${{ github.event.issue.pull_request }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: kevinzunigacuellar/coauthor-action@292b32bdbffc663431a2a37b3bfa597d83a74905 # v0.1.3
9 changes: 4 additions & 5 deletions .github/workflows/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@ jobs:
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\n
- [StudioCMS Landing Page](https://pr${context.payload.pull_request.number}.www.studiocms.xyz/)\n
- [StudioCMS Documentation](https://pr${context.payload.pull_request.number}.docs.studiocms.xyz/)\n
- [StudioCMS Demo (node-playground)](https://pr${context.payload.pull_request.number}.demo.studiocms.xyz/) (Also deployed with package changes)\n
- [StudioCMS Ui Demo (ui-playground)](https://pr${context.payload.pull_request.number}.ui-testing.studiocms.xyz/)`
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/)`
})
9 changes: 5 additions & 4 deletions .github/workflows/firsttimepr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
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
Expand All @@ -31,7 +32,7 @@ jobs:
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.xyz), to stay in the loop for any future help we may need!`
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 }}`, {
Expand All @@ -41,16 +42,16 @@ jobs:
'Content-Type': 'application/json'
},
body: JSON.stringify({
content: "<@&1223013363492192377>",
content: `<@&${{ secrets.DISCORD_ROLE_HONOURED }}>, <@&${{ secrets.DISCORD_ROLE_REVERED }}>, <@&${{ secrets.DISCORD_ROLE_EXALTED }}>`,
tts: false,
embeds: [
{
"id": 661098315,
"description": `New Contributor - ${creator} has had their first PR merged! 🎉\nMerged PR: [PR# ${context.issue.number}](https://github.com/astrolicious/studiocms/pull/${context.issue.number})`,
"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/astrolicious/studiocms/blob/main/www/assets/logo-discord.png?raw=true"
"icon_url": "https://github.com/withstudiocms/studiocms.dev/blob/main/assets/logo-discord.png?raw=true"
},
"title": "🚨 FIRST TIME CONTRIBUTOR 🚨"
}
Expand Down
15 changes: 9 additions & 6 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,32 @@ jobs:
NODE_OPTIONS: "--max_old_space_size=4096"
steps:
- name: Check out code using Git
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
ref: ${{ github.head_ref }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}

- name: Setup PNPM
uses: pnpm/action-setup@v3

- name: Setup Node
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4
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: astrolicious
commit_user_email: no-reply@studiocms.xyz
commit_author: StudioCMS <no-reply@studiocms.xyz>
commit_user_name: studiocms-no-reply
commit_user_email: no-reply@studiocms.dev
commit_author: StudioCMS <no-reply@studiocms.dev>
4 changes: 2 additions & 2 deletions .github/workflows/renovate-changesets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ jobs:

steps:
- name: Update PR
uses: mscharley/dependency-changesets-action@2ca9c8db686d12d7dad1e60bc4230fb293b21e6c # v1.1.0
uses: mscharley/dependency-changesets-action@b73462eb4c2cf1fe16a8d9d681932fd05eea5c9f # v1.1.1
with:
token: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}
use-conventional-commits: true
author-name: StudioCMS
author-email: no-reply@studiocms.xyz
author-email: no-reply@studiocms.dev
23 changes: 0 additions & 23 deletions .github/workflows/sync.yml

This file was deleted.

4 changes: 2 additions & 2 deletions .github/workflows/todo-auto-issue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- 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.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.STUDIOCMS_SERVICE_TOKEN }}
2 changes: 1 addition & 1 deletion biome.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.3/schema.json",
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"vcs": {
"enabled": true,
"clientKind": "git",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"docs:dev": "pnpm --filter docs dev"
},
"devDependencies": {
"@biomejs/biome": "1.9.3",
"@biomejs/biome": "1.9.4",
"@moonrepo/cli": "1.28.3",
"@changesets/cli": "2.27.9",
"@changesets/config": "3.0.3",
Expand Down
Loading

0 comments on commit dd41f8c

Please sign in to comment.