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
49 changes: 0 additions & 49 deletions .github/workflows/close-no-repro-issues.yml

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/delete-changeset-bot-comments.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/pr-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
run: pnpm install --frozen-lockfile

- name: 📥 Download result from upstream workflow
uses: actions/download-artifact@v4
uses: actions/download-artifact@v8
with:
name: pr-checks-result
github-token: ${{ github.token }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ jobs:
run: node scripts/pr.ts check

- name: 📤 Upload result
uses: actions/upload-artifact@v4
uses: actions/upload-artifact@v7
with:
name: pr-checks-result
path: pr-checks-result.json
10 changes: 5 additions & 5 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ jobs:
- name: Build/push branch (push)
if: github.event_name == 'push'
run: |
pnpm run setup-installable-branch preview/dev
pnpm run previews:branch preview/dev
git push --force --set-upstream origin preview/dev
echo "💿 pushed installable branch: https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"

Expand All @@ -86,17 +86,17 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
pnpm run setup-installable-branch preview/pr-${{ github.event.pull_request.number }}
pnpm run previews:branch preview/pr-${{ github.event.pull_request.number }}
git push --force --set-upstream origin preview/pr-${{ github.event.pull_request.number }}
echo "pushed installable branch: https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"
pnpm run pr-preview comment ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}
pnpm run previews:pr comment ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}

# Build and normal push for experimental releases to avoid unintended force
# pushes over remote branches in case of a branch name collision
- name: Build/push branch (workflow_dispatch)
if: github.event_name == 'workflow_dispatch'
run: |
pnpm run setup-installable-branch ${{ inputs.installableBranch }}
pnpm run previews:branch ${{ inputs.installableBranch }}
git push --set-upstream origin ${{ inputs.installableBranch }}
echo "💿 pushed installable branch: https://github.com/$GITHUB_REPOSITORY/commit/$(git rev-parse HEAD)"

Expand All @@ -106,4 +106,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ github.token }}
run: |
pnpm run pr-preview cleanup ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}
pnpm run previews:pr cleanup ${{ github.event.pull_request.number }} preview/pr-${{ github.event.pull_request.number }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"format:check": "prettier --ignore-path .prettierignore --check .",
"lint": "eslint --cache .",
"playground": "node ./scripts/playground.js",
"pr-preview": "node ./scripts/pr-preview.ts",
"previews:branch": "node ./scripts/previews/branch.ts",
"previews:pr": "node ./scripts/previews/pr.ts",
"release-comments": "node scripts/release-comments.ts",
"setup-installable-branch": "node scripts/setup-installable-branch.ts",
"test": "jest",
"test:inspect": "node --inspect-brk ./node_modules/.bin/jest",
"typegen": "pnpm run --recursive --parallel typegen",
Expand Down
89 changes: 0 additions & 89 deletions scripts/changes/delete-changeset-bot-comments.ts

This file was deleted.

7 changes: 0 additions & 7 deletions scripts/close-feature-pr.md

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/close-no-repro-issues.md

This file was deleted.

74 changes: 0 additions & 74 deletions scripts/close-no-repro-issues.ts

This file was deleted.

9 changes: 0 additions & 9 deletions scripts/constants.js

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import * as fsp from "node:fs/promises";
import * as path from "node:path";
import * as util from "node:util";
import { logAndExec } from "./utils/process.ts";
import { logAndExec } from "../utils/process.ts";

/**
* This script prepares a base branch (usually `dev`) to be PNPM-installable
Expand Down
8 changes: 4 additions & 4 deletions scripts/pr-preview.ts → scripts/previews/pr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
* - `cleanup <pr-number>`: Deletes the preview branch from the remote repository
* and adds a cleanup notification comment to the PR.
*
* Usage: `node pr-preview.ts <command> <pr-number>`
* Usage: `node scripts/previews/pr.ts <command> <pr-number>`
*/

import { parseArgs } from "node:util";
Expand All @@ -21,8 +21,8 @@ import {
deletePrComment,
getPrComments,
updatePrComment,
} from "./utils/github.ts";
import { logAndExec } from "./utils/process.ts";
} from "../utils/github.ts";
import { logAndExec } from "../utils/process.ts";

const STICKY_MARKER = "<!-- pr-preview-comment-sticky -->";
const CLEANUP_MARKER = "<!-- pr-preview-comment-cleanup -->";
Expand Down Expand Up @@ -57,7 +57,7 @@ if (commands[command]) {
}

function printUsage() {
console.error("Usage: node pr-preview.ts <command> <args>");
console.error("Usage: node scripts/previews/pr.ts <command> <args>");
console.error(
" comment <pr-number> <preview-branch> - Add preview comment to PR",
);
Expand Down
Loading