Skip to content

Commit f8b5c6d

Browse files
committed
Merge branch 'main' into SERVICES-2371-scroll-support-in-api
2 parents 214901b + 650572b commit f8b5c6d

38 files changed

Lines changed: 9881 additions & 1403 deletions
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Publish (alpha / beta) with specific package
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
channel:
7+
type: choice
8+
description: NPM channel
9+
options:
10+
- alpha
11+
- beta
12+
package_name:
13+
type: string
14+
description: "Optional: Specify the package to publish (leave empty to publish all changed packages)"
15+
required: false
16+
17+
permissions:
18+
contents: write
19+
20+
jobs:
21+
publish-npm:
22+
runs-on: ubuntu-latest
23+
defaults:
24+
run:
25+
working-directory: ./
26+
steps:
27+
- uses: actions/checkout@v2
28+
- uses: actions/setup-node@v1
29+
with:
30+
node-version: 16
31+
registry-url: https://registry.npmjs.org/
32+
cache-dependency-path: ./package-lock.json
33+
34+
- run: npx lerna@6 bootstrap
35+
- run: npx lerna@6 run build
36+
37+
- name: Create release (only for all packages)
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
run: |
41+
if [ -z "${{ github.event.inputs.package_name }}" ]; then
42+
echo "Creating a release for all packages..."
43+
RELEASE_TAG=v$(node -p "require('./lerna.json').version")
44+
gh release create --prerelease $RELEASE_TAG --target=$GITHUB_SHA --title="$RELEASE_TAG" --generate-notes
45+
else
46+
echo "Skipping release creation because we're publishing a single package."
47+
fi
48+
49+
- name: Publish to npmjs
50+
env:
51+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
52+
run: |
53+
if [ -z "${{ github.event.inputs.package_name }}" ]; then
54+
echo "Publishing all changed packages..."
55+
npx lerna publish from-package --yes --dist-tag ${{ github.event.inputs.channel }} --pre-dist-tag ${{ github.event.inputs.channel }}
56+
else
57+
echo "Publishing only: ${{ github.event.inputs.package_name }}"
58+
59+
# Publish the specific package
60+
npx lerna publish from-package --yes --dist-tag ${{ github.event.inputs.channel }} --pre-dist-tag ${{ github.event.inputs.channel }}
61+
fi

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ This package contains a set of utilities commonly used in the MultiversX Microse
77
It relies on the following peer dependencies which must be installed in the parent package:
88

99
- @multiversx/sdk-core
10-
- @multiversx/sdk-wallet
1110
- @nestjs/common v9
1211
- @nestjs/swagger v9
1312

lerna.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
33
"useWorkspaces": true,
4-
"version": "4.0.11",
4+
"version": "6.0.0",
55
"packages": [
66
"packages/*"
77
],
88
"npmClient": "npm"
9-
}
9+
}

0 commit comments

Comments
 (0)