Skip to content

Commit a033387

Browse files
committed
CI: publish @apollo/client-devtools-vscode to pkg.pr.new for PRs
1 parent 12bde20 commit a033387

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Pull Request Prerelease
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- "**"
8+
tags:
9+
- "!**"
10+
11+
jobs:
12+
vscode-package:
13+
name: "@apollo/client-devtools-vscode"
14+
runs-on: ubuntu-latest
15+
steps:
16+
- name: Checkout repo
17+
uses: actions/checkout@v4
18+
19+
- name: Setup Node.js 20.x
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 20.x
23+
24+
- run: npm ci
25+
26+
- name: Publish to pkg.pr.new
27+
run: npm run pkg-pr-new-publish

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
"start:dev": "run-p start:client start:server",
1818
"dist:chrome": "npm run build -- --env TARGET=chrome && tsx build.ts chrome",
1919
"dist:firefox": "npm run build -- --env TARGET=firefox && tsx build.ts firefox",
20+
"dist:vscode": "npm run build -- --env TARGET=vscode",
2021
"build": "npm run clean && webpack --env NODE_ENV=production --progress",
2122
"build:dev": "npm run clean && webpack --env NODE_ENV=development --progress",
2223
"clean": "rimraf build && mkdir build && rimraf *.zip",
@@ -33,7 +34,8 @@
3334
"type-check": "tsc --noEmit",
3435
"test:circleci": "jest --maxWorkers=2",
3536
"test:watch": "jest --watch",
36-
"codegen": "graphql-codegen --config codegen.ts"
37+
"codegen": "graphql-codegen --config codegen.ts",
38+
"pkg-pr-new-publish": "npm run dist:vscode && cd dist && pkg-pr-new publish --no-template --compact"
3739
},
3840
"dependencies": {
3941
"@apollo/brand": "^0.7.0",

0 commit comments

Comments
 (0)