mirror of
https://github.com/nocodb/nocodb.git
synced 2026-04-25 03:55:57 +00:00
chore: use static timeout for now as pnpm view & install not matching
Signed-off-by: mertmit <mertmit99@gmail.com>
This commit is contained in:
39
.github/workflows/release-npm.yml
vendored
39
.github/workflows/release-npm.yml
vendored
@@ -53,27 +53,6 @@ jobs:
|
||||
node-version: 18.19.1
|
||||
registry-url: "https://registry.npmjs.org"
|
||||
- run: |
|
||||
wait_for_npm_update() {
|
||||
local package=$1
|
||||
local version=$2
|
||||
local max_attempts=30
|
||||
local attempt=0
|
||||
|
||||
echo "Waiting for pnpm registry to update for package $package@$version..."
|
||||
while [[ $attempt -lt $max_attempts ]]; do
|
||||
pnpm view $package@$version > /dev/null 2>&1
|
||||
if [[ $? -eq 0 ]]; then
|
||||
echo "Package $package@$version is now available in the npm registry."
|
||||
return 0
|
||||
fi
|
||||
attempt=$((attempt + 1))
|
||||
sleep 10
|
||||
done
|
||||
|
||||
echo "Timeout waiting for npm registry to update for package $package@$version."
|
||||
return 1
|
||||
}
|
||||
|
||||
export NODE_OPTIONS="--max_old_space_size=16384"
|
||||
NOCODB_SDK_PKG_NAME=nocodb-sdk
|
||||
# If targetEnv is DEV, then use nocodb-sdk-daily package
|
||||
@@ -83,22 +62,16 @@ jobs:
|
||||
echo $NOCODB_SDK_PKG_NAME
|
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNocodbSdkVersion.js &&
|
||||
pnpm --filter=${NOCODB_SDK_PKG_NAME} install --ignore-scripts --no-frozen-lockfile --ignore-workspace && pnpm --filter=${NOCODB_SDK_PKG_NAME} run build && pnpm --filter=${NOCODB_SDK_PKG_NAME} publish --no-git-checks &&
|
||||
|
||||
# Wait for the package to be available in the npm registry
|
||||
wait_for_npm_update $NOCODB_SDK_PKG_NAME ${{ github.event.inputs.tag || inputs.tag }} &&
|
||||
|
||||
pnpm store prune &&
|
||||
|
||||
echo "$(date)" &&
|
||||
sleep 300 &&
|
||||
echo "$(date)" &&
|
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNocodbSdk.js &&
|
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} node scripts/bumpNcGuiVersion.js &&
|
||||
pnpm --filter=nc-gui install --ignore-scripts --no-frozen-lockfile &&
|
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} targetVersion=${{ github.event.inputs.tag || inputs.tag }} pnpm --filter=nc-gui run build:copy:publish --no-git-checks &&
|
||||
|
||||
# Wait for the package to be available in the npm registry
|
||||
wait_for_npm_update nc-gui ${{ github.event.inputs.tag || inputs.tag }} &&
|
||||
|
||||
pnpm store prune &&
|
||||
|
||||
echo "$(date)" &&
|
||||
sleep 300 &&
|
||||
echo "$(date)" &&
|
||||
targetEnv=${{ github.event.inputs.targetEnv || inputs.targetEnv }} node scripts/upgradeNcGui.js && cd packages/nocodb && pnpm run obfuscate:build:publish --no-git-checks
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user