Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5c58e7d
dummy change
gabrielmfern Aug 8, 2025
239b667
try removing credentails
gabrielmfern Aug 8, 2025
13413a7
try empty credential fields
gabrielmfern Aug 8, 2025
cb77fa4
use empty strings
gabrielmfern Aug 8, 2025
cbc5424
try to interpolate credentials in
gabrielmfern Aug 8, 2025
b97dfc7
interpolat inline
gabrielmfern Aug 8, 2025
cb8bab4
Merge branch 'fix/workflows-failing-on-contributor-forks' into my-tes…
gabrielmfern Aug 8, 2025
bf0faaa
try to interpolate in tests?
gabrielmfern Aug 8, 2025
2d7677d
Revert "try to interpolate in tests?"
gabrielmfern Aug 8, 2025
346a712
try to format values in quotes
gabrielmfern Aug 8, 2025
d4df6c2
try to interpolate all of credentials
gabrielmfern Aug 8, 2025
21d89b6
try credentials out again
gabrielmfern Aug 8, 2025
4bcc7f4
use different syntax
gabrielmfern Aug 15, 2025
5e520f7
try another syntax
gabrielmfern Aug 15, 2025
04a152d
use github container registry
gabrielmfern Aug 15, 2025
bbee41b
try using a matrix strategy
gabrielmfern Aug 15, 2025
01972cb
Revert "try using a matrix strategy"
gabrielmfern Aug 15, 2025
5d4f903
Revert "use github container registry"
gabrielmfern Aug 15, 2025
e7570ab
Revert "try another syntax"
gabrielmfern Aug 15, 2025
dc02d0d
add a separate workflow for fork
gabrielmfern Aug 15, 2025
8c236ba
try something
gabrielmfern Aug 15, 2025
04b6c40
add fork variants for all workflows
gabrielmfern Aug 15, 2025
cbc4e85
remove credentials from forks variamts
gabrielmfern Aug 15, 2025
7698483
unify jobs
gabrielmfern Aug 15, 2025
25a28c8
try matrix
gabrielmfern Aug 15, 2025
758a1cc
use ghcr and authenticate with it
gabrielmfern Aug 15, 2025
5d01b84
try using null and checking for being a fork instead of for the secre…
gabrielmfern Aug 15, 2025
03443a7
use null in expression
gabrielmfern Aug 15, 2025
0acfaf3
Revert "use null in expression"
gabrielmfern Aug 15, 2025
368e48e
Revert "try using null and checking for being a fork instead of for t…
gabrielmfern Aug 15, 2025
1092914
Revert "use ghcr and authenticate with it"
gabrielmfern Aug 15, 2025
a72abf2
Revert "try matrix"
gabrielmfern Aug 15, 2025
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
27 changes: 25 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,35 @@ on:
pull_request:
jobs:
lint:
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'push'
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
credentials:
username: "${{ vars.DOCKER_HUB_USERNAME }}"
password: "${{ secrets.DOCKER_HUB_API_KEY }}"
username: ${{ vars.DOCKER_HUB_USERNAME }}
password: ${{ secrets.DOCKER_HUB_API_KEY }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install packages
run: pnpm install
- name: Run Lint
run: pnpm lint
env:
SKIP_ENV_VALIDATION: true

lint-forks:
if: github.event.pull_request.head.repo.fork == true
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
40 changes: 40 additions & 0 deletions .github/workflows/pin-dependencies-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
jobs:
pin-dependencies-check:
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'push'
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
Expand Down Expand Up @@ -45,3 +46,42 @@ jobs:
console.log("All dependencies are pinned.");
}
'

pin-dependencies-check-forks:
if: github.event.pull_request.head.repo.fork == true
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Check for pinned dependencies
run: |
node -e '
const fs = require("fs");
const pkg = JSON.parse(fs.readFileSync("package.json", "utf8"));
const errors = [];

function isPinned(version) {
return /^\d+\.\d+\.\d+(-canary\.\d+)?$/.test(version);
}

for (const [dep, version] of Object.entries(pkg.dependencies || {})) {
if (!isPinned(version)) {
errors.push(`Dependency "${dep}" is not pinned: "${version}"`);
}
}

for (const [dep, version] of Object.entries(pkg.devDependencies || {})) {
if (!isPinned(version)) {
errors.push(`Dev dependency "${dep}" is not pinned: "${version}"`);
}
}

if (errors.length > 0) {
console.error(`\n${errors.join("\n")}\n`);
process.exit(1);
} else {
console.log("All dependencies are pinned.");
}
'
13 changes: 13 additions & 0 deletions .github/workflows/pr-title-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on:
types: [opened, edited, synchronize]
jobs:
pr-title-check:
if: github.event.pull_request.head.repo.fork == false
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
Expand All @@ -16,3 +17,15 @@ jobs:
- name: Run PR title check
run: |
node .github/scripts/pr-title-check.js

pr-title-check-forks:
if: github.event.pull_request.head.repo.fork == true
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Run PR title check
run: |
node .github/scripts/pr-title-check.js
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
pull_request:
jobs:
tests:
if: github.event.pull_request.head.repo.fork == false || github.event_name == 'push'
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
Expand All @@ -30,3 +31,27 @@ jobs:
run: pnpm test
env:
SKIP_ENV_VALIDATION: true

tests-forks:
if: github.event.pull_request.head.repo.fork == true
runs-on: buildjet-4vcpu-ubuntu-2204
container:
image: node:20
steps:
- name: Checkout
uses: actions/checkout@v4
- name: pnpm setup
uses: pnpm/action-setup@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
cache: "pnpm"
- name: Install Doppler CLI
uses: dopplerhq/cli-action@v3
- name: Install packages
run: pnpm install
- name: Run Tests
run: pnpm test
env:
SKIP_ENV_VALIDATION: true
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "resend",
"name": "gabrielmfern-resend",
"version": "6.0.1",
"description": "Node.js library for the Resend API",
"main": "./dist/index.js",
Expand Down
Loading