File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -45,10 +45,17 @@ jobs:
4545 fi
4646 echo "npm_tag validation passed: $NPM_TAG"
4747
48+ native :
49+ name : Build native packages
50+ needs : validate_inputs
51+ permissions :
52+ contents : read
53+ uses : ./.github/workflows/reusable-native-release.yml
54+
4855 release :
4956 name : Release
5057 if : github.repository == 'rstackjs/rstack-cli' && github.event_name == 'workflow_dispatch'
51- needs : validate_inputs
58+ needs : native
5259 runs-on : ubuntu-latest
5360 environment : npm
5461 permissions :
7885 - name : Prepare release
7986 run : node --run release:prepare
8087
88+ - name : Download native packages
89+ uses : actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
90+ with :
91+ name : native-packages
92+ path : packages/rstack/npm
93+
94+ - name : Prepare native packages
95+ run : pnpm --dir packages/rstack exec napi pre-publish --config-path napi.json --skip-optional-publish --no-gh-release
96+
8197 - name : Publish to npm
98+ env :
99+ NPM_TAG : ${{ inputs.npm_tag }}
82100 run : |
83- pnpm --filter './packages/*' -r stage publish --tag ${{ github.event.inputs.npm_tag }} --no-git-checks
101+ for package_dir in packages/rstack/npm/*; do
102+ pnpm stage publish "$package_dir" --tag "$NPM_TAG" --no-git-checks
103+ done
104+
105+ pnpm --filter './packages/*' -r stage publish --tag "$NPM_TAG" --no-git-checks
You can’t perform that action at this time.
0 commit comments