Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/quiet-dragons-design.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"github-actions-cloudflare-pages": patch
---

chore(deps-dev): replace prettier with oxfmt for code formatting
62 changes: 31 additions & 31 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
{
"name": "Container - Cloudflare Pages Action",
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"esbenp.prettier-vscode",
"github.vscode-github-actions",
"yoavbls.pretty-ts-errors",
"redhat.vscode-yaml",
"GraphQL.vscode-graphql",
"GraphQL.vscode-graphql-syntax",
"vitest.explorer"
]
}
},
"postCreateCommand": "sed -i '/^ZSH_THEME/c\\ZSH_THEME=\"bira\"' ~/.zshrc && pnpm i && pre-commit install",
"updateContentCommand": "rm -rf .cache && pnpm i && pre-commit install",
"features": {
"ghcr.io/devcontainers-extra/features/act:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "24.7.0",
"pnpmVersion": "10.15.1"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}
}
"name": "Container - Cloudflare Pages Action",
"image": "mcr.microsoft.com/devcontainers/base:jammy",
"customizations": {
"vscode": {
"extensions": [
"dbaeumer.vscode-eslint",
"eamodio.gitlens",
"oxc.oxc-vscode",
"github.vscode-github-actions",
"yoavbls.pretty-ts-errors",
"redhat.vscode-yaml",
"GraphQL.vscode-graphql",
"GraphQL.vscode-graphql-syntax",
"vitest.explorer"
]
}
},
"postCreateCommand": "sed -i '/^ZSH_THEME/c\\ZSH_THEME=\"bira\"' ~/.zshrc && pnpm i && pre-commit install",
"updateContentCommand": "rm -rf .cache && pnpm i && pre-commit install",
"features": {
"ghcr.io/devcontainers-extra/features/act:1": {},
"ghcr.io/devcontainers/features/docker-outside-of-docker:1": {},
"ghcr.io/devcontainers/features/node:1": {
"version": "24.7.0",
"pnpmVersion": "10.15.1"
},
"ghcr.io/devcontainers/features/github-cli:1": {},
"ghcr.io/devcontainers-extra/features/pre-commit:2": {}
}

// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
// "remoteUser": "root"
}
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github: ["andykenward"]
github: ['andykenward']
52 changes: 22 additions & 30 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ updates:
day: sunday
cooldown:
default-days: 5
- package-ecosystem: "devcontainers"
directory: "/"
- package-ecosystem: 'devcontainers'
directory: '/'
schedule:
interval: weekly
day: sunday
Expand All @@ -29,41 +29,33 @@ updates:
groups:
graphql:
patterns:
- "@graphql-codegen/*"
- "@graphql-typed-document-node/*"
- "graphql"
- "graphql-tag"
- '@graphql-codegen/*'
- '@graphql-typed-document-node/*'
- 'graphql'
- 'graphql-tag'
vitest:
patterns:
- "@vitest*"
- "vitest"
- "vite"
- '@vitest*'
- 'vitest'
- 'vite'
eslint:
patterns:
- "@eslint/*"
- "@types/eslint"
- "@typescript-eslint/*"
- "eslint"
- "eslint-config-*"
- "eslint-plugin-*"
- "globals"
- "typescript-eslint"
exclude-patterns:
- "eslint-config-prettier"
prettier:
patterns:
- "prettier"
- "eslint-config-prettier"
- "@ianvs/prettier-plugin-sort-imports"
- "prettier-plugin-packagejson"
- '@eslint/*'
- '@types/eslint'
- '@typescript-eslint/*'
- 'eslint'
- 'eslint-config-*'
- 'eslint-plugin-*'
- 'globals'
- 'typescript-eslint'
octokit:
patterns:
- "@octokit/*"
- "@octokit-next/*"
- '@octokit/*'
- '@octokit-next/*'
cloudflare:
patterns:
- "@cloudflare/*"
- "wrangler"
- '@cloudflare/*'
- 'wrangler'
changesets:
patterns:
- "@changesets/*"
- '@changesets/*'
4 changes: 2 additions & 2 deletions .github/workflow-templates/delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Checkout Github Action"
- name: 'Checkout Github Action'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- name: "Deploy deletion from Cloudflare Pages"
- name: 'Deploy deletion from Cloudflare Pages'
uses: andykenward/github-actions-cloudflare-pages/delete@def80dd70ba3eb3d243520092bd303aa6454ec40 #v3.3.1
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflow-templates/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: "Checkout Github Action"
- name: 'Checkout Github Action'
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- name: "Deploy to Cloudflare Pages"
- name: 'Deploy to Cloudflare Pages'
uses: andykenward/github-actions-cloudflare-pages@def80dd70ba3eb3d243520092bd303aa6454ec40 #v3.3.1
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,12 @@ on:
branches:
- main
paths-ignore:
- "**.md"
- '**.md'
pull_request:
branches:
- main
paths-ignore:
- "**.md"
- '**.md'
workflow_dispatch:

concurrency:
Expand All @@ -40,7 +40,7 @@ jobs:
with:
path: |
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/prettier.config.cjs', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
- name: Rebuild the dist/ directory
run: pnpm run build

Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
name: "CodeQL"
name: 'CodeQL'
on:
push:
branches: ["main"]
branches: ['main']
pull_request:
branches: ["main"]
branches: ['main']
schedule:
- cron: "34 6 * * 2"
- cron: '34 6 * * 2'
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
analyze:
name: Analyze
runs-on: "ubuntu-latest"
runs-on: 'ubuntu-latest'
timeout-minutes: 360
permissions:
security-events: write
strategy:
fail-fast: false
matrix:
language: ["javascript-typescript", "actions"]
language: ['javascript-typescript', 'actions']
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
Expand All @@ -35,10 +35,10 @@ jobs:
with:
path: |
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/prettier.config.cjs', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
- name: Rebuild the dist/ directory
run: pnpm run build
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 #v4.32.6
with:
category: "/language:${{matrix.language}}"
category: '/language:${{matrix.language}}'
2 changes: 1 addition & 1 deletion .github/workflows/deploy-delete.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- id: "cloudflare-pages"
- id: 'cloudflare-pages'
uses: ./delete
with:
cloudflare-api-token: ${{ secrets.CLOUDFLARE_API_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
workflow_dispatch:
inputs:
environment:
description: "Environment to run actiomn against"
description: 'Environment to run actiomn against'
type: environment
required: false

Expand All @@ -29,7 +29,7 @@ jobs:
timeout-minutes: 5
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd #v6.0.2
- id: "cloudflare-pages"
- id: 'cloudflare-pages'
uses: ./
with:
cloudflare-api-token: ${{secrets.CLOUDFLARE_API_TOKEN}}
Expand All @@ -39,7 +39,7 @@ jobs:
github-token: ${{ secrets.GITHUB_TOKEN }}
github-environment: ${{ inputs.environment || 'preview' }}
working-directory: example
- id: "cloudflare-pages-delete"
- id: 'cloudflare-pages-delete'
uses: ./delete
# if main branch
if: github.ref == 'refs/heads/main'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
with:
path: |
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/prettier.config.cjs', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
- name: Create Release Pull Request
id: changesets
uses: changesets/action@6a0a831ff30acef54f2c6aa1cbbc1096b066edaf #v1.7.0
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
with:
path: |
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/prettier.config.cjs', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
- name: Lint
run: pnpm run lint --cache-strategy content
- name: Typecheck
Expand Down
18 changes: 9 additions & 9 deletions .github/workflows/update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: update
on:
schedule:
- cron: "0 0 * * 0" # every sunday at midnight
- cron: '0 0 * * 0' # every sunday at midnight
workflow_dispatch:

concurrency:
Expand All @@ -26,7 +26,7 @@ jobs:
with:
path: |
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/prettier.config.cjs', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
- name: cli download payloads
run: pnpm run download
env:
Expand All @@ -36,11 +36,11 @@ jobs:
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 #v8.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update payloads"
commit-message: 'chore: update payloads'
sign-commits: true
branch: "chore/update-payloads"
branch: 'chore/update-payloads'
delete-branch: true
title: "chore: update payloads"
title: 'chore: update payloads'
body: |
This is an automated PR to update payloads.
types:
Expand All @@ -59,18 +59,18 @@ jobs:
with:
path: |
~/.cache/
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/prettier.config.cjs', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
key: ${{ runner.os }}-node-${{ hashFiles('**/pnpm-lock.yaml', '**/eslint.config.js', '**/.oxfmtrc.json', '**/tsconfig.json', '**/knip.json', '**/vitest.config.ts', '**/vitest.setup.ts') }}
- name: cli all
run: pnpm run tsc:types
- name: Create Pull Request
id: cpr
uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 #v8.1.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "chore: update types"
commit-message: 'chore: update types'
sign-commits: true
branch: "chore/types"
branch: 'chore/types'
delete-branch: true
title: "chore: update types"
title: 'chore: update types'
body: |
This is an automated PR to update generated types.
38 changes: 38 additions & 0 deletions .oxfmtrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "./node_modules/oxfmt/configuration_schema.json",
"arrowParens": "avoid",
"bracketSpacing": false,
"ignorePatterns": [
"dist/**",
"example/",
"payload-examples/",
"tsconfig.tsnode.json",
"__generated__/gql/",
"__generated__/payloads/",
"__generated__/responses/",
".cache",
".changeset/*.md"
],
"printWidth": 80,
"semi": false,
"singleQuote": true,
"sortImports": {
"customGroups": [
{"groupName": "node:", "elementNamePattern": ["node:*", "node:*/*"]}
],
"groups": [
"type-import",
"node:",
["value-builtin", "value-external"],
"type-internal",
"value-internal",
["type-parent", "type-sibling", "type-index"],
["value-parent", "value-sibling", "value-index"],
"unknown"
]
},
"sortPackageJson": {
"sortScripts": true
},
"trailingComma": "none"
}
Loading
Loading