Skip to content

Commit 8cbbc5a

Browse files
authored
Setup pkg.new.pr (#104)
1 parent 9ed2e74 commit 8cbbc5a

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,23 @@ jobs:
3333

3434
- name: Test
3535
run: npm run test
36+
37+
38+
preview:
39+
if: github.repository == 'prettier/prettier-cli'
40+
name: Preview release
41+
runs-on: ubuntu-latest
42+
steps:
43+
- uses: actions/checkout@v7
44+
45+
- name: Setup Node.js
46+
uses: actions/setup-node@v6
47+
48+
- name: Install dependencies
49+
run: npm ci
50+
51+
- name: Build
52+
run: npm run compile
53+
54+
- name: Preview
55+
run: npx pkg-pr-new publish --compact --packageManager=yarn

0 commit comments

Comments
 (0)