Skip to content

Commit b18ae39

Browse files
authored
ci: include native bindings and docs in package previews (#626)
1 parent 9f1c8b7 commit b18ae39

2 files changed

Lines changed: 30 additions & 27 deletions

File tree

‎.github/workflows/pkg-pr-new.yml‎

Lines changed: 30 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,54 @@
11
name: Publish Package Previews
22

33
on:
4-
pull_request:
5-
branches: [main]
4+
workflow_dispatch:
65

7-
permissions: {}
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref }}
8+
cancel-in-progress: true
9+
10+
permissions:
11+
contents: read
812

913
jobs:
14+
native:
15+
name: Build native packages
16+
uses: ./.github/workflows/reusable-native-release.yml
17+
1018
publish:
19+
needs: native
1120
runs-on: ubuntu-latest
1221
steps:
1322
- name: Checkout
1423
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
1524

1625
- name: Setup Node.js
17-
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7
26+
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
1827
with:
19-
node-version: 24.19.0
28+
node-version: 24.22.2
2029
package-manager-cache: false
2130

2231
- name: Install Pnpm
23-
uses: pnpm/action-setup@0977fd99725f1db4007ccb2928dbb4e90d06cc86 # v6.0.10
32+
uses: pnpm/action-setup@ea17c68df8912ef543352723c149a84f56e3d413 # v6.1.0
2433
with:
2534
run_install: true
2635

2736
- name: Build Packages
2837
run: node --run build
2938

39+
- name: Prepare release
40+
run: node --run release:prepare
41+
42+
- name: Download native packages
43+
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
44+
with:
45+
name: native-packages
46+
path: packages/rstack/npm
47+
48+
- name: Prepare native packages
49+
run: pnpm --dir packages/rstack exec napi pre-publish --config-path napi.json --skip-optional-publish --no-gh-release
50+
3051
- name: Publish Package Previews
31-
run: pnpm exec pkg-pr-new publish --pnpm --previewVersion --no-template './packages/rstack' './packages/create-rstack'
52+
run: >-
53+
pnpm exec pkg-pr-new publish --pnpm --previewVersion --no-template
54+
'./packages/rstack' './packages/create-rstack' './packages/rstack/npm/*'

‎packages/rstack/tests/pkgPrNew.test.ts‎

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)