Skip to content

Commit 764194f

Browse files
authored
ci(pkg-pr-new): publish package for testing purposes (#1085)
1 parent be080d1 commit 764194f

File tree

3 files changed

+319
-1
lines changed

3 files changed

+319
-1
lines changed

Diff for: .github/workflows/ci.yml

+32
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,38 @@ jobs:
5959
env:
6060
CI: true
6161

62+
pkg-pr-new:
63+
name: pkg-pr-new
64+
if: github.repository == 'chimurai/http-proxy-middleware'
65+
runs-on: ubuntu-latest
66+
needs: [build]
67+
68+
steps:
69+
- uses: actions/checkout@v4
70+
- name: Use Node.js 22.x
71+
uses: actions/setup-node@v4
72+
with:
73+
node-version: 22.x
74+
75+
- uses: actions/cache@v4
76+
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
77+
with:
78+
path: '**/node_modules'
79+
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
80+
restore-keys: |
81+
${{ runner.os }}-yarn-
82+
83+
- name: yarn install
84+
if: steps.yarn-cache.outputs.cache-hit != 'true' # Over here!
85+
run: yarn install --frozen-lockfile --ignore-scripts
86+
87+
- name: pkg-pr-new - publish for testing purposes
88+
run: npx pkg-pr-new publish --compact --no-template
89+
90+
env:
91+
CI: true
92+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
93+
6294
lint:
6395
name: Lint
6496
runs-on: ubuntu-latest

Diff for: package.json

+1
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@
8282
"mockttp": "3.17.0",
8383
"open": "8.4.2",
8484
"patch-package": "8.0.0",
85+
"pkg-pr-new": "0.0.41",
8586
"prettier": "3.5.3",
8687
"supertest": "7.1.0",
8788
"ts-jest": "29.2.6",

0 commit comments

Comments
 (0)