Skip to content

Commit

Permalink
Add preview release workflow (pkg-pr-new)
Browse files Browse the repository at this point in the history
  • Loading branch information
ciscorn committed Dec 13, 2024
1 parent 2f2c534 commit f24d393
Show file tree
Hide file tree
Showing 3 changed files with 352 additions and 4 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Preview Release

on:
push:
branches:
- main
pull_request:

jobs:
preview-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- run: corepack enable

- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install

- name: Build
run: pnpm build

- name: Publish packages preview with pkg-pr-new CLI
run: pnpx pkg-pr-new publish
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@
"maplibre-gl": "5.0.0-pre.9",
"mdsvex": "^0.12.3",
"mode-watcher": "^0.5.0",
"pkg-pr-new": "^0.0.37",
"pmtiles": "^4.0.1",
"prettier": "^3.4.2",
"prettier-plugin-svelte": "^3.3.2",
Expand Down
Loading

0 comments on commit f24d393

Please sign in to comment.