Skip to content

Commit

Permalink
fix: og image previews
Browse files Browse the repository at this point in the history
  • Loading branch information
cseas committed Dec 21, 2024
1 parent 2e7a9f2 commit 25d941c
Show file tree
Hide file tree
Showing 15 changed files with 331 additions and 225 deletions.
4 changes: 4 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
changeset-added:
- any:
- changed-files:
- any-glob-to-any-file: ['.changeset/*']
7 changes: 4 additions & 3 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
### Description

Summary of the change.
Fixes:

### Checklist

- [ ] My changes generate no new warnings
- [ ] I've done a self-review of this pull request
- [ ] I have self-reviewed the code and added `AI-PR-Review` label.
- [ ] These changes don't generate any new warnings in the terminal/browser console.
- [ ] This PR has new components/utils and tests have been added for them (if applicable).
60 changes: 60 additions & 0 deletions .github/workflows/checklist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Checklist

on:
pull_request:
types:
- opened
- reopened
- edited
- synchronize
- ready_for_review
- labeled
workflow_run:
workflows: ["Labeler"]
types:
- completed

jobs:
detect:
name: Detect
runs-on: self-hosted
outputs:
checked: ${{ steps.detect.outputs.checked }}
unchecked: ${{ steps.detect.outputs.unchecked }}

steps:
- name: Checkbox Trigger
id: detect
uses: karlderkaefer/github-action-checkbox-trigger@v1
with:
github-token: ${{ github.token }}
action: detect
- name: List changes
run: |
echo "checked=${{ steps.detect.outputs.checked }}"
echo "unchecked=${{ steps.detect.outputs.unchecked }}"
verify:
name: Verify
needs: [detect]
runs-on: self-hosted
steps:
- name: Self-review
if: |
github.event.pull_request.draft == false &&
contains(needs.detect.outputs.unchecked, 'I have self-reviewed the code and added `AI-PR-Review` label.')
uses: actions/github-script@v7
with:
script: |
core.setFailed('Please self-review the code and address AI-PR-Review comments before requesting a review.')
- name: Changeset
if: |
github.event.workflow_run.conclusion == 'success' &&
github.event.pull_request.draft == false &&
!(contains(github.event.pull_request.labels.*.name, 'changeset-not-applicable') ||
contains(github.event.pull_request.labels.*.name, 'changeset-added'))
uses: actions/github-script@v7
with:
script: |
core.setFailed('Please add changeset or add the changeset-not-applicable label to the PR.')
18 changes: 18 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Labeler

on: pull_request_target

jobs:
labeler:
name: Label
permissions:
contents: read
pull-requests: write

runs-on: self-hosted

steps:
- name: Add labels
uses: actions/labeler@v5
with:
sync-labels: true
3 changes: 3 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"printWidth": 105
}
4 changes: 2 additions & 2 deletions docs/posts/check-package.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "[WIP] Linting npm packages"
date: "2023-03-30"
title: "Linting npm packages"
date: "2024-12-22"
---

Publishing an npm package is a very different experience from writing locally shared code and can come with a lot of daunting challenges. Thankfully, there are multiple tools out there today that help us validate our published package.
Expand Down
2 changes: 1 addition & 1 deletion docs/posts/npm-library.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ However, it doesn't support customising any Rollup options which you might need

## Tsdx

Tsdx is a popular zero-config CLI for TypeScript package development. However, it's not maintained anymore and is not recommended for use. Rollup's preserveModules is also not officially supported: [https://github.com/formium/tsdx/issues/276](https://github.com/formium/tsdx/issues/276).
Tsdx is a popular zero-config CLI for TypeScript package development. However, it's not maintained anymore and is not recommended for use. Rollup's `preserveModules` is also not officially supported: [https://github.com/formium/tsdx/issues/276](https://github.com/formium/tsdx/issues/276).

> Have questions? [Discuss on Twitter](https://x.com/cse_as)
Expand Down
3 changes: 3 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,7 @@ export default {
// Todo: This is temporary until the below issue is resolved
// https://github.com/vercel/next.js/issues/46267
typescript: { ignoreBuildErrors: true },

// Todo: check why css is not loading from hazel-ui
transpilePackages: ["hazel-ui"],
};
Loading

0 comments on commit 25d941c

Please sign in to comment.