Repository navigation
54 lines (42 loc) · 1.5 KB
/
Copy pathpkg-pr-new.yml
File metadata and controls
54 lines (42 loc) · 1.5 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Publish Package Previews
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
native:
name: Build native packages
uses: ./.github/workflows/reusable-native-release.yml
publish:
needs: native
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
- name: Setup Node.js
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
with:
node-version-file: .node-version
package-manager-cache: false
- name: Install Pnpm
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
with:
run_install: true
- name: Build Packages
run: node --run build
- name: Prepare release
run: node --run release:prepare
- name: Download native packages
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
with:
name: native-packages
path: packages/rstack/npm
- name: Prepare native packages
run: pnpm --dir packages/rstack exec napi pre-publish --config-path napi.json --skip-optional-publish --no-gh-release
- name: Publish Package Previews
run: >-
pnpm exec pkg-pr-new publish --pnpm --previewVersion --no-template
'./packages/rstack' './packages/create-rstack' './packages/rstack/npm/*'