Skip to content

Commit 3dc184a

Browse files
committed
ci: preview releases
1 parent 5a5315d commit 3dc184a

2 files changed

Lines changed: 35 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Preview release
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
8+
permissions:
9+
contents: read
10+
11+
env:
12+
NX_BRANCH: ${{ github.event.number || github.ref_name }}
13+
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
14+
15+
jobs:
16+
preview:
17+
name: Publish preview packages (pkg.pr.new)
18+
runs-on: ubuntu-latest
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v6
22+
- uses: actions/setup-node@v6
23+
with:
24+
node-version: lts/*
25+
cache: npm
26+
- name: npm install
27+
run: npm install --force
28+
- name: Build packages
29+
run: npx nx run-many -t build -p angular,zone-js
30+
- name: Publish preview packages
31+
run: npx pkg-pr-new publish --compact ./dist/packages/angular ./dist/packages/zone-js

packages/zone-js/package.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,9 @@
22
"name": "@nativescript/zone-js",
33
"version": "4.0.0",
44
"description": "NativeScript Zone.js",
5+
"repository": {
6+
"type": "git",
7+
"url": "git+https://github.com/NativeScript/angular.git"
8+
},
59
"main": "dist/index.js"
610
}

0 commit comments

Comments
 (0)