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
46 changes: 46 additions & 0 deletions .github/workflows/npm-experimental.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
name: Publish experimental package

on:
pull_request:
types: [opened, synchronize]

jobs:
publish-experimental:
runs-on: ubuntu-latest

if: |
github.event.pull_request.head.repo.full_name == github.repository &&
${{ github.head_ref != 'main' && !startsWith(github.head_ref, 'canary') }}

steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: "24"

- name: Install pnpm
uses: pnpm/action-setup@v4

- name: Install dependencies and build
run: |
pnpm install
pnpm run build
cp ../README.md .
cp ../LICENSE .
working-directory: ./package

- name: Compute experimental version
id: version
run: |
HASH=$(git rev-parse --short HEAD)
echo "version=0.0.0-experimental-${HASH}" >> $GITHUB_OUTPUT

- name: Publish experimental package
run: |
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm version --no-git-tag-version ${{steps.version.outputs.version}}
npm publish --tag experimental --access public
working-directory: ./package
1 change: 1 addition & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
if: "!contains(github.ref_name, 'canary')"
run: |
npm set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
npm version --no-git-tag-version ${{github.ref_name}}
npm publish --access public
working-directory: ./package

Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ dist
node_modules
yarn.lock
yarn-error.log
*.d.ts
*.js
!env.d.ts
2 changes: 1 addition & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1 +1 @@
pnpm run lint
npx lint-staged
2 changes: 1 addition & 1 deletion eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import eslintPluginPrettierRecommended from "eslint-plugin-prettier/recommended";
import tseslint from "typescript-eslint";

const ignores = ["**/node_modules/**", "**/dist/**", "**/.next/**", "**/*.js", "**/*.d.ts"];
const ignores = ["**/node_modules/**", "**/dist/**", "**/.next/**"];

export default [
{
Expand Down
20 changes: 10 additions & 10 deletions examples/auth-intl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "auth-intl",
"name": "examples-auth-intl",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -8,17 +8,17 @@
"start": "next start"
},
"dependencies": {
"@nimpl/proxy-chain": "latest",
"next": "16.0.0",
"next-auth": "4.24.7",
"next-intl": "3.14.1",
"react": "19.2.0",
"react-dom": "19.2.0"
"@nimpl/proxy-chain": "workspace:*",
"next": "16.1.1",
"next-auth": "4.24.13",
"next-intl": "4.6.1",
"react": "19.2.3",
"react-dom": "19.2.3"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.2",
"@types/node": "25.0.3",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"typescript": "5.9.3"
}
}
18 changes: 9 additions & 9 deletions examples/auth5-intl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "auth5-intl",
"name": "examples-auth5-intl",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -8,17 +8,17 @@
"start": "next start"
},
"dependencies": {
"@nimpl/proxy-chain": "latest",
"next": "16.0.0",
"@nimpl/proxy-chain": "workspace:*",
"next": "16.1.1",
"next-auth": "5.0.0-beta.19",
"next-intl": "3.14.1",
"react": "19.2.0",
"react-dom": "19.2.0"
"next-intl": "4.6.1",
"react": "19.2.3",
"react-dom": "19.2.3"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.2",
"@types/node": "25.0.3",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"typescript": "5.9.3"
}
}
16 changes: 8 additions & 8 deletions examples/base/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "base",
"name": "examples-base",
"version": "0.1.0",
"private": true,
"scripts": {
Expand All @@ -8,15 +8,15 @@
"start": "next start"
},
"dependencies": {
"@nimpl/proxy-chain": "latest",
"next": "16.0.0",
"react": "19.2.0",
"react-dom": "19.2.0"
"@nimpl/proxy-chain": "workspace:*",
"next": "16.1.1",
"react": "19.2.3",
"react-dom": "19.2.3"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.2",
"@types/node": "25.0.3",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"typescript": "5.9.3"
}
}
16 changes: 12 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
"description": "",
"scripts": {
"nimpl:proxy-chain": "pnpm --filter @nimpl/proxy-chain",
"lint": "eslint \"package/\"",
"lint": "eslint \".\"",
"eslint": "eslint",
"prepare": "husky"
},
"lint-staged": {
"*.{ts,tsx,js,jsx}": ["eslint"]
},
"repository": {
"type": "git",
"url": "git://github.com/alexdln/nimpl-proxy-chain.git"
Expand All @@ -18,12 +21,17 @@
"url": "https://github.com/alexdln/"
},
"devDependencies": {
"eslint": "9.38.0",
"eslint": "9.39.2",
"eslint-config-prettier": "10.1.8",
"eslint-plugin-prettier": "5.5.4",
"husky": "9.1.7",
"prettier": "3.6.2",
"typescript-eslint": "8.46.2"
"prettier": "3.7.4",
"typescript-eslint": "8.51.0"
},
"resolutions": {
"examples-auth-intl>@nimpl/proxy-chain": "workspace:*",
"examples-auth5-intl>@nimpl/proxy-chain": "workspace:*",
"examples-base>@nimpl/proxy-chain": "workspace:*"
},
"license": "MIT",
"packageManager": "pnpm@9.7.0+sha512.dc09430156b427f5ecfc79888899e1c39d2d690f004be70e05230b72cb173d96839587545d09429b55ac3c429c801b4dc3c0e002f653830a420fa2dd4e3cf9cf"
Expand Down
2 changes: 1 addition & 1 deletion package/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"license": "MIT",
"devDependencies": {
"next": "16.0.0",
"next": "16.1.1",
"typescript": "5.9.3"
},
"peerDependencies": {
Expand Down
Loading