Skip to content

Commit 6f6651d

Browse files
committed
add snapshot publishing
1 parent 9aca120 commit 6f6651d

File tree

4 files changed

+348
-1
lines changed

4 files changed

+348
-1
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Publish Snapshot
2+
3+
on:
4+
pull_request:
5+
branches: [main, ng/changesets-and-publishing]
6+
7+
jobs:
8+
snapshot:
9+
name: Publish Snapshot
10+
if: github.repository_owner == 'geobrowser'
11+
runs-on: ubuntu-latest
12+
timeout-minutes: 10
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: pnpm/action-setup@v3
16+
with:
17+
version: 9
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version-file: "package.json"
21+
cache: "pnpm"
22+
- name: Install dependencies
23+
run: pnpm install --frozen-lockfile
24+
- name: Build
25+
run: pnpm build
26+
- name: Create snapshot
27+
id: snapshot
28+
run: pnpx [email protected] publish --pnpm --comment=off ./packages/*

.github/workflows/tests-and-checks.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
name: Install deps, build required package, typecheck, lint and test
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- uses: pnpm/action-setup@v3
1212
with:
1313
version: 9

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"babel-plugin-annotate-pure-calls": "^0.5.0",
1919
"@changesets/cli": "^2.27.11",
2020
"glob": "^11.0.1",
21+
"pkg-pr-new": "^0.0.39",
2122
"typescript": "^5.7.3",
2223
"vitest": "^3.0.1"
2324
}

0 commit comments

Comments
 (0)