create-disposabl-app 0.10.2 → 0.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/disposabl.js CHANGED
@@ -255,7 +255,7 @@ Sign in to Expo if needed and choose Delete project. Then rerun this command to
255
255
  // ../cli/package.json
256
256
  var package_default = {
257
257
  name: "@disposabl/cli",
258
- version: "0.10.2",
258
+ version: "0.10.3",
259
259
  type: "module",
260
260
  description: "Command-line access to your Disposabl app",
261
261
  license: "MIT",
package/dist/index.js CHANGED
@@ -8,7 +8,7 @@ import { fileURLToPath as fileURLToPath2 } from "node:url";
8
8
  import { Command, CommanderError } from "commander";
9
9
  import * as p2 from "@clack/prompts";
10
10
  // package.json
11
- var version = "0.10.2";
11
+ var version = "0.10.3";
12
12
 
13
13
  // ../disposabl-kit/platforms.ts
14
14
  var platforms = [
@@ -52,12 +52,18 @@ for platform in android linux windows; do
52
52
  if [[ "$CHANNEL" == production ]]; then tag+="-${GITHUB_RUN_ID}-${GITHUB_RUN_ATTEMPT}"; fi
53
53
  printf 'Platform: %s\nSource: %s\n' "$platform" "$SOURCE" > "$RUNNER_TEMP/release-notes.md"
54
54
  if [[ -f "$directory/android.json" ]]; then printf '<!-- android %s -->\n' "$(jq -c . "$directory/android.json")" >> "$RUNNER_TEMP/release-notes.md"; fi
55
- if gh release view "$tag" --json assets > "$RUNNER_TEMP/previous-release.json"; then
55
+ if gh release view "$tag" --json assets,isDraft > "$RUNNER_TEMP/previous-release.json"; then
56
56
  gh release upload "$tag" "$directory/"* --clobber
57
57
  while IFS= read -r asset; do
58
58
  if [[ ! -f "$directory/$asset" ]]; then check_source; gh release delete-asset "$tag" "$asset" --yes; fi
59
59
  done < <(jq -r '.assets[].name' "$RUNNER_TEMP/previous-release.json")
60
- gh api --method PATCH "repos/$GH_REPO/git/refs/tags/$tag" -f sha="$SOURCE" -F force=true > /dev/null
60
+ check_source
61
+ if [[ "$(jq -r .isDraft "$RUNNER_TEMP/previous-release.json")" == true ]]; then
62
+ # Drafts may not have a tag yet after a partially failed publish.
63
+ gh release edit "$tag" --target "$SOURCE"
64
+ else
65
+ gh api --method PATCH "repos/$GH_REPO/git/refs/tags/$tag" -f sha="$SOURCE" -F force=true > /dev/null
66
+ fi
61
67
  else
62
68
  gh release create "$tag" "$directory/"* --draft --target "$SOURCE" --title "$CHANNEL / $platform" --notes-file "$RUNNER_TEMP/release-notes.md" --prerelease="$PRERELEASE"
63
69
  fi
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-disposabl-app",
3
- "version": "0.10.2",
3
+ "version": "0.10.3",
4
4
  "description": "Create a Disposabl app",
5
5
  "type": "module",
6
6
  "license": "MIT",