Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 9 additions & 8 deletions .github/workflows/publish-js-sdks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ jobs:
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9.15.0
run_install: false
version: latest

- name: Enable corepack
run: corepack enable

- name: Get pnpm store path
id: pnpm-store
working-directory: sdks
run: echo "STORE_PATH=$(pnpm store path)" >> "$GITHUB_OUTPUT"
run: echo "STORE_PATH=$(corepack pnpm store path)" >> "$GITHUB_OUTPUT"

- name: Cache pnpm store
uses: actions/cache@v5
Expand All @@ -59,11 +60,11 @@ jobs:

- name: Install workspace dependencies
working-directory: sdks
run: pnpm install --frozen-lockfile
run: corepack pnpm install --frozen-lockfile

- name: Build SDK
working-directory: sdks
run: pnpm --filter ${{ matrix.sdk.packageName }}... --sort run build
run: corepack pnpm --filter ${{ matrix.sdk.packageName }}... --sort run build

- name: Pack SDK
if: startsWith(github.ref, format('refs/tags/js/{0}/v', matrix.sdk.tagPrefix))
Expand All @@ -73,7 +74,7 @@ jobs:
set -euo pipefail
PACK_DIR="${GITHUB_WORKSPACE}/dist/npm/${{ matrix.sdk.name }}"
mkdir -p "$PACK_DIR"
pnpm pack --pack-destination "$PACK_DIR"
corepack pnpm pack --pack-destination "$PACK_DIR"
PACKAGE_TARBALL="$(find "$PACK_DIR" -maxdepth 1 -name '*.tgz' -print -quit)"
if [[ -z "$PACKAGE_TARBALL" ]]; then
echo "No package tarball was produced in $PACK_DIR" >&2
Expand All @@ -92,4 +93,4 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm publish "${{ steps.pack.outputs.tarball }}" --access public --no-git-checks
corepack pnpm publish "${{ steps.pack.outputs.tarball }}" --access public --no-git-checks
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -274,5 +274,10 @@ kubernetes/test/kind/gvisor/runsc
kubernetes/test/kind/gvisor/containerd-shim-runsc-v1
bin/
obj/
console/dist/
console/output/
console/playwright-report/
console/tests/playwright-report/
console/playwright.config.ts

.qoder/
13 changes: 13 additions & 0 deletions console/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<!doctype html>
<html lang="en" class="dark">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="https://raw.githubusercontent.com/alibaba/OpenSandbox/main/docs/public/favicon.svg" />
<title>OpenSandbox · Developer Console</title>
</head>
<body>
<div id="root"></div>
<script type="module" src="/src/main.tsx"></script>
</body>
</html>
Loading
Loading