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
12 changes: 6 additions & 6 deletions .github/workflows/setup-node-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ jobs:
run: npm run build
- name: validate build
run: |
FILE=lib/index.js
FILE2=lib/index.d.ts
if [ -f $FILE ] && [ -f $FILE2 ]; then echo "Files exist"
else echo "Files do not exist" && exit 1
fi
FILE=lib/index.js
FILE2=lib/index.d.ts
if [ -f $FILE ] && [ -f $FILE2 ]; then echo "Files exist"
else echo "Files do not exist" && exit 1
fi
- name: lint
run: npm run lint
- name: test
Expand All @@ -68,4 +68,4 @@ jobs:
id: benchmark
run: npm run benchmark:diff:ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 2 additions & 3 deletions benchmark/run-benchmark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ benny
["new", "old", "delta"]
);

if (!isInCI) {
if (!isInCI || !process.env.GITHUB_TOKEN) {
return;
}

Expand All @@ -89,8 +89,7 @@ benny
body += `| ${diff.name} | ${diff.new}| ${diff.old} | ${diff.delta} |\n`;
});

const octokit = getOctokit(process.env.GITHUB_TOKEN ?? "");
await octokit.rest.issues.createComment({
await getOctokit(process.env.GITHUB_TOKEN).rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
Expand Down
Loading