Skip to content

Commit

Permalink
pr previews
Browse files Browse the repository at this point in the history
  • Loading branch information
pngwn committed Aug 15, 2024
1 parent 5b7d080 commit c77ed60
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/mdsvex.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
os: [ubuntu-latest, macOS-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- run: npm i -g pnpm@9
- run: npm i -g pnpm@9.1
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/npm-previews.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: npm-previews

on:
push:
paths-ignore:
- 'site/**'
pull_request:
paths-ignore:
- 'site/**'

jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i -g pnpm@9
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm i --frozen-lockfile
- run: pnpm lint
# type-check here as well when it is working
env:
CI: true
name: mdsvex

preview:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: npm i -g [email protected]
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'pnpm'
cache-dependency-path: '**/pnpm-lock.yaml'
- run: pnpm i --frozen-lockfile
- run: pnpm -r build
env:
CI: true
name: mdsvex
- run: pnpm -r preview
env:
CI: true
name: mdsvex
- run: pnpx pkg-pr-new publish './packages/*' --compact

0 comments on commit c77ed60

Please sign in to comment.