-
-
Notifications
You must be signed in to change notification settings - Fork 13
31 lines (27 loc) · 772 Bytes
/
Copy pathpreview-release.yml
File metadata and controls
31 lines (27 loc) · 772 Bytes
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
name: Preview release
on:
push:
branches: ["main"]
pull_request:
permissions:
contents: read
env:
NX_BRANCH: ${{ github.event.number || github.ref_name }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
preview:
name: Publish preview packages (pkg.pr.new)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: lts/*
cache: npm
- name: npm install
run: npm install --force
- name: Build packages
run: npx nx run-many -t build -p angular,zone-js
- name: Publish preview packages
run: npx pkg-pr-new publish --compact ./dist/packages/angular ./dist/packages/zone-js