Skip to content

Commit 44629f9

Browse files
committed
ci: add preview releases stub
1 parent 1a70ee8 commit 44629f9

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

.github/workflows/pkg.pr.new.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Publish Commit
2+
on:
3+
push:
4+
branches:
5+
- '**'
6+
tags:
7+
- '!**'
8+
pull_request:
9+
10+
env:
11+
# NODE_VER: 24.14
12+
NODE_VER: 18.20
13+
WORKING_DIR: packages/next-auth
14+
15+
defaults:
16+
run:
17+
working-directory: ${{ env.WORKING_DIR }}
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout code
24+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
25+
26+
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320
27+
name: Install pnpm
28+
with:
29+
run_install: false
30+
# cache-dependency-path: ${{ env.WORKING_DIR }}/pnpm-lock.yaml
31+
32+
- name: Use Node.js ${{ env.NODE_VER }}
33+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
34+
with:
35+
node-version: ${{ env.NODE_VER }}
36+
cache: pnpm
37+
# cache-dependency-path: ${{ env.WORKING_DIR }}/pnpm-lock.yaml
38+
39+
- name: Install deps
40+
run: pnpm i
41+
42+
# - name: Build and pack
43+
# run: pnpm prepack
44+
45+
# - name: Publish package preview
46+
# run: pnpx pkg-pr-new publish --compact

0 commit comments

Comments
 (0)