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

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,38 @@ jobs:
env:
CI: true

pkg-pr-new:
name: pkg-pr-new
if: github.repository == 'chimurai/http-proxy-middleware'
runs-on: ubuntu-latest
needs: [build]

steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: 22.x

- uses: actions/cache@v4
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: '**/node_modules'
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: yarn install
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
run: yarn install --frozen-lockfile --ignore-scripts

- name: pkg-pr-new - publish for testing purposes
run: npx pkg-pr-new publish --compact --no-template

env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

lint:
name: Lint
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"mockttp": "3.17.0",
"open": "8.4.2",
"patch-package": "8.0.0",
"pkg-pr-new": "0.0.41",
"prettier": "3.5.3",
"supertest": "7.1.0",
"ts-jest": "29.2.6",
Expand Down
Loading
Loading