-
Notifications
You must be signed in to change notification settings - Fork 81
36 lines (30 loc) · 1.01 KB
/
package-previews.yml
File metadata and controls
36 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Package Previews
on:
pull_request:
types: [labeled]
jobs:
publish-previews:
if: github.event.label.name == 'publish-pkg-preview'
name: Publish Package Previews
permissions:
contents: read
issues: read
timeout-minutes: 10
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v6
- uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v5.0.0
- uses: actions/setup-node@v6
with:
node-version: "24"
cache: "pnpm"
- name: install
run: pnpm install --frozen-lockfile --prefer-offline
- name: Build packages
run: pnpm build --filter='./packages/*'
- name: Publish package previews
run: npx pkg-pr-new publish './packages/api-client' './packages/api-gen' './packages/cms-base-layer' './packages/composables' './packages/helpers' './packages/nuxt-module'