launchset 0.0.1 → 1.3.0
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/README.md +99 -4
- package/dist/appstore-bVSJnUv2.js +143 -0
- package/dist/cli.js +7038 -0
- package/dist/errors-CHdD4g_K.js +58 -0
- package/dist/gitlab-child-HpkyOlFm.js +6223 -0
- package/dist/http-dQt8kfON.js +127 -0
- package/dist/index.d.ts +867 -0
- package/dist/index.js +29 -0
- package/dist/init-CSnEh2wt.js +9064 -0
- package/dist/launchset.schema.json +1512 -0
- package/dist/play-D7nv0n-W.js +123 -0
- package/dist/prompts-S8h8cgml.js +52 -0
- package/dist/schema-WH9ljSlL.js +1236 -0
- package/dist/store-BCwWrhhY.js +73 -0
- package/package.json +86 -5
- package/skills/launchset/AGENTS-snippet.md +24 -0
- package/skills/launchset/SKILL.md +205 -0
- package/skills/launchset-adopt/SKILL.md +235 -0
- package/templates/gitlab/child/build.yml +17 -0
- package/templates/gitlab/child/cli.yml +14 -0
- package/templates/gitlab/child/comment.yml +14 -0
- package/templates/gitlab/child/finalize.yml +14 -0
- package/templates/gitlab/child/header.yml +4 -0
- package/templates/gitlab/child/include.yml +6 -0
- package/templates/gitlab/child/nothing.yml +11 -0
- package/templates/gitlab/gitlab-ci.yml +23 -0
- package/templates/gitlab/launchset-preview.yml +62 -0
- package/templates/gitlab/launchset-targets.yml +44 -0
- package/templates/gitlab/launchset.yml +133 -0
- package/templates/gitlab/targets/android.yml +25 -0
- package/templates/gitlab/targets/custom-npm.yml +15 -0
- package/templates/gitlab/targets/custom.yml +23 -0
- package/templates/gitlab/targets/docker.yml +23 -0
- package/templates/gitlab/targets/flutter-android.yml +32 -0
- package/templates/gitlab/targets/flutter-ios.yml +42 -0
- package/templates/gitlab/targets/ios.yml +33 -0
- package/templates/gitlab/targets/web.yml +13 -0
- package/templates/launchset-readme.md +23 -0
- package/templates/workflows/launchset-check.yml +33 -0
- package/templates/workflows/launchset-preview.yml +157 -0
- package/templates/workflows/launchset-release.yml +181 -0
- package/templates/workflows/snippets/android.yml +41 -0
- package/templates/workflows/snippets/custom-example.yml +12 -0
- package/templates/workflows/snippets/custom-npm.yml +19 -0
- package/templates/workflows/snippets/custom.yml +9 -0
- package/templates/workflows/snippets/docker-login.yml +9 -0
- package/templates/workflows/snippets/docker.yml +17 -0
- package/templates/workflows/snippets/flutter-android.yml +51 -0
- package/templates/workflows/snippets/flutter-ios.yml +50 -0
- package/templates/workflows/snippets/ios.yml +46 -0
- package/templates/workflows/snippets/web.yml +20 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# `stamp` wrote the version into this target's `files`, if it has any. Example, for an npm
|
|
2
|
+
# package (and add `verify: ["npm"]` to the target to skip it when the version exists):
|
|
3
|
+
#
|
|
4
|
+
# - uses: actions/setup-node@v7
|
|
5
|
+
# if: @@if@@
|
|
6
|
+
# with:
|
|
7
|
+
# node-version: 24
|
|
8
|
+
# registry-url: https://registry.npmjs.org
|
|
9
|
+
# - run: npm publish --tag ${{ steps.stamp.outputs.dist-tag }}
|
|
10
|
+
# if: @@if@@
|
|
11
|
+
# env:
|
|
12
|
+
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# --- @@target@@ (npm package) ---
|
|
2
|
+
# Publishes releases (skipped when `verify` finds this version on the registry) and
|
|
3
|
+
# prereleases. PR and branch previews are not published to npm.
|
|
4
|
+
- uses: actions/setup-node@v7
|
|
5
|
+
if: @@if@@
|
|
6
|
+
with:
|
|
7
|
+
node-version: 24
|
|
8
|
+
registry-url: https://registry.npmjs.org
|
|
9
|
+
# - run: npm ci && npm run build # build first, if the package needs it
|
|
10
|
+
# if: @@if@@
|
|
11
|
+
- name: Publish @@target@@ (npm)
|
|
12
|
+
if: @@if@@
|
|
13
|
+
# The dist-tag is `latest` for base-branch releases, so a hotfix on a maintenance branch
|
|
14
|
+
# does not move `latest`. Add --access public for a public scoped package.
|
|
15
|
+
run: npm publish --tag ${{ steps.stamp.outputs.dist-tag }}
|
|
16
|
+
env:
|
|
17
|
+
# Or use npm trusted publishing: give this job `id-token: write` and drop the token here.
|
|
18
|
+
# `verify` still needs a read token for a private package: trusted publishing can't read.
|
|
19
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# --- @@target@@ (custom): your build and publish steps go here ---
|
|
2
|
+
# Remove this step once you've added the build and upload steps below: it stops the release
|
|
3
|
+
# from marking @@target@@ as shipped while nothing builds it.
|
|
4
|
+
- name: Build steps missing (@@target@@)
|
|
5
|
+
if: @@if@@
|
|
6
|
+
run: |
|
|
7
|
+
echo "::error::No build steps for @@target@@ yet. Add them to this workflow and remove this step."
|
|
8
|
+
exit 1
|
|
9
|
+
@@example@@
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
# Log in to the registry. In the release workflow this runs before `verify` on purpose: for a
|
|
2
|
+
# private package the registry check needs read access. The login also covers the push below.
|
|
3
|
+
- name: Log in to @@registry_name@@
|
|
4
|
+
if: @@if@@
|
|
5
|
+
uses: docker/login-action@v4
|
|
6
|
+
with:
|
|
7
|
+
@@registry_line@@
|
|
8
|
+
username: @@username@@
|
|
9
|
+
password: @@password@@
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
# --- @@target@@ (docker) ---
|
|
2
|
+
- name: Set up Docker Buildx (@@target@@)
|
|
3
|
+
if: @@if@@
|
|
4
|
+
uses: docker/setup-buildx-action@v4
|
|
5
|
+
- name: Build and push @@target@@
|
|
6
|
+
if: @@if@@
|
|
7
|
+
uses: docker/build-push-action@v7
|
|
8
|
+
with:
|
|
9
|
+
context: @@context@@
|
|
10
|
+
@@file_line@@
|
|
11
|
+
@@platforms_line@@
|
|
12
|
+
push: true
|
|
13
|
+
# The tags and labels come from launchset and follow the `tags` config of this target.
|
|
14
|
+
tags: ${{ steps.stamp.outputs.docker-tags }}
|
|
15
|
+
labels: ${{ steps.stamp.outputs.docker-labels }}
|
|
16
|
+
cache-from: type=gha,scope=@@target@@
|
|
17
|
+
cache-to: type=gha,mode=max,scope=@@target@@
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# --- @@target@@ (android, Flutter): example steps, uncomment and adapt ---
|
|
2
|
+
# Remove this step once you've added the build and upload steps below: it stops the release
|
|
3
|
+
# from marking @@target@@ as shipped while nothing builds it.
|
|
4
|
+
- name: Build steps missing (@@target@@)
|
|
5
|
+
if: @@if@@
|
|
6
|
+
run: |
|
|
7
|
+
echo "::error::No build steps for @@target@@ yet. Add them to this workflow and remove this step."
|
|
8
|
+
exit 1
|
|
9
|
+
# `stamp` already wrote the version and build number into @@pubspec@@ (`version: X.Y.Z+N`),
|
|
10
|
+
# which Flutter passes to Gradle as versionName and versionCode. The build step passes them as
|
|
11
|
+
# --build-name and --build-number too. `channel` picks the Google Play track:
|
|
12
|
+
# release -> production, prerelease -> beta, preview -> internal.
|
|
13
|
+
# Signing: the release signingConfig in android/app/build.gradle(.kts) reads your upload key,
|
|
14
|
+
# for example from android/key.properties that a step writes from secrets.
|
|
15
|
+
# Secrets are referenced by name only: add them as repository or organization secrets.
|
|
16
|
+
#
|
|
17
|
+
# - name: Set up Java (@@target@@)
|
|
18
|
+
# if: @@if@@
|
|
19
|
+
# uses: actions/setup-java@v6
|
|
20
|
+
# with:
|
|
21
|
+
# distribution: temurin
|
|
22
|
+
# java-version: "17"
|
|
23
|
+
# - name: Set up Flutter (@@target@@)
|
|
24
|
+
# if: @@if@@
|
|
25
|
+
# uses: subosito/flutter-action@v2
|
|
26
|
+
# with:
|
|
27
|
+
# channel: stable
|
|
28
|
+
# cache: true
|
|
29
|
+
# - name: Build the app bundle (@@target@@)
|
|
30
|
+
# if: @@if@@
|
|
31
|
+
# working-directory: @@flutter_dir@@
|
|
32
|
+
# run: flutter build appbundle --release --build-name "$LAUNCHSET_VERSION" --build-number "$LAUNCHSET_BUILD_NUMBER"
|
|
33
|
+
# env:
|
|
34
|
+
# LAUNCHSET_VERSION: ${{ steps.stamp.outputs.marketing-version }}
|
|
35
|
+
# LAUNCHSET_BUILD_NUMBER: ${{ steps.stamp.outputs.build-number }}
|
|
36
|
+
# ANDROID_KEYSTORE_BASE64: ${{ secrets.ANDROID_KEYSTORE_BASE64 }}
|
|
37
|
+
# ANDROID_KEYSTORE_PASSWORD: ${{ secrets.ANDROID_KEYSTORE_PASSWORD }}
|
|
38
|
+
# ANDROID_KEY_ALIAS: ${{ secrets.ANDROID_KEY_ALIAS }}
|
|
39
|
+
# ANDROID_KEY_PASSWORD: ${{ secrets.ANDROID_KEY_PASSWORD }}
|
|
40
|
+
# - name: Upload to Google Play (@@target@@)
|
|
41
|
+
# # As in Flutter's fastlane guide, the Gemfile is in @@flutter_native_dir@@.
|
|
42
|
+
# if: @@if@@
|
|
43
|
+
# working-directory: @@flutter_native_dir@@
|
|
44
|
+
# run: |
|
|
45
|
+
# bundle exec fastlane supply \
|
|
46
|
+
# --aab ../build/app/outputs/bundle/release/app-release.aab \
|
|
47
|
+
# --track "$PLAY_TRACK" \
|
|
48
|
+
# --package_name "@@package_name@@"
|
|
49
|
+
# env:
|
|
50
|
+
# PLAY_TRACK: ${{ steps.stamp.outputs.channel == 'release' && 'production' || (steps.stamp.outputs.channel == 'prerelease' && 'beta' || 'internal') }}
|
|
51
|
+
# SUPPLY_JSON_KEY_DATA: ${{ secrets.LAUNCHSET_PLAY_SERVICE_ACCOUNT_JSON }}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# --- @@target@@ (ios, Flutter): example steps, uncomment and adapt ---
|
|
2
|
+
# Remove this step once you've added the build and upload steps below: it stops the release
|
|
3
|
+
# from marking @@target@@ as shipped while nothing builds it.
|
|
4
|
+
- name: Build steps missing (@@target@@)
|
|
5
|
+
if: @@if@@
|
|
6
|
+
run: |
|
|
7
|
+
echo "::error::No build steps for @@target@@ yet. Add them to this workflow and remove this step."
|
|
8
|
+
exit 1
|
|
9
|
+
# `stamp` already wrote the marketing version (plain X.Y.Z) and the build number into
|
|
10
|
+
# @@pubspec@@ (`version: X.Y.Z+N`), which Flutter passes to Xcode as FLUTTER_BUILD_NAME and
|
|
11
|
+
# FLUTTER_BUILD_NUMBER. The build step passes them as --build-name and --build-number too.
|
|
12
|
+
# This job runs on a macOS runner. `channel` picks where the build goes: release -> TestFlight,
|
|
13
|
+
# ready to submit for App Store review; prerelease -> an external TestFlight group; preview ->
|
|
14
|
+
# internal testers only.
|
|
15
|
+
# Secrets are referenced by name only: add them as repository or organization secrets.
|
|
16
|
+
#
|
|
17
|
+
# - name: Set up Flutter (@@target@@)
|
|
18
|
+
# if: @@if@@
|
|
19
|
+
# uses: subosito/flutter-action@v2
|
|
20
|
+
# with:
|
|
21
|
+
# channel: stable
|
|
22
|
+
# cache: true
|
|
23
|
+
# - name: Build the IPA (@@target@@)
|
|
24
|
+
# if: @@if@@
|
|
25
|
+
# working-directory: @@flutter_dir@@
|
|
26
|
+
# run: |
|
|
27
|
+
# flutter build ipa --release \
|
|
28
|
+
# --export-options-plist=ios/ExportOptions.plist \
|
|
29
|
+
# --build-name "$LAUNCHSET_VERSION" \
|
|
30
|
+
# --build-number "$LAUNCHSET_BUILD_NUMBER"
|
|
31
|
+
# env:
|
|
32
|
+
# LAUNCHSET_VERSION: ${{ steps.stamp.outputs.marketing-version }}
|
|
33
|
+
# LAUNCHSET_BUILD_NUMBER: ${{ steps.stamp.outputs.build-number }}
|
|
34
|
+
# - name: Upload to TestFlight (@@target@@)
|
|
35
|
+
# # Uses a fastlane lane (see "Workflow recipes" in the launchset docs). As in Flutter's
|
|
36
|
+
# # fastlane guide, the Gemfile and fastlane/Fastfile are in @@flutter_native_dir@@:
|
|
37
|
+
# # lane :testflight do |options|
|
|
38
|
+
# # api_key = app_store_connect_api_key(key_id: ENV.fetch("ASC_KEY_ID"),
|
|
39
|
+
# # issuer_id: ENV.fetch("ASC_ISSUER_ID"), key_content: ENV.fetch("ASC_PRIVATE_KEY"))
|
|
40
|
+
# # upload_to_testflight(api_key: api_key, ipa: options.fetch(:ipa),
|
|
41
|
+
# # skip_waiting_for_build_processing: true)
|
|
42
|
+
# # end
|
|
43
|
+
# if: @@if@@
|
|
44
|
+
# working-directory: @@flutter_native_dir@@
|
|
45
|
+
# run: bundle exec fastlane testflight ipa:"$(ls ../build/ios/ipa/*.ipa | head -n 1)"
|
|
46
|
+
# env:
|
|
47
|
+
# # The raw contents of the .p8 key (also used by `verify`).
|
|
48
|
+
# ASC_KEY_ID: ${{ secrets.LAUNCHSET_ASC_KEY_ID }}
|
|
49
|
+
# ASC_ISSUER_ID: ${{ secrets.LAUNCHSET_ASC_ISSUER_ID }}
|
|
50
|
+
# ASC_PRIVATE_KEY: ${{ secrets.LAUNCHSET_ASC_PRIVATE_KEY }}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
# --- @@target@@ (ios): example steps, uncomment and adapt ---
|
|
2
|
+
# Remove this step once you've added the build and upload steps below: it stops the release
|
|
3
|
+
# from marking @@target@@ as shipped while nothing builds it.
|
|
4
|
+
- name: Build steps missing (@@target@@)
|
|
5
|
+
if: @@if@@
|
|
6
|
+
run: |
|
|
7
|
+
echo "::error::No build steps for @@target@@ yet. Add them to this workflow and remove this step."
|
|
8
|
+
exit 1
|
|
9
|
+
# `stamp` already wrote the marketing version (plain X.Y.Z) and the build number
|
|
10
|
+
# into the Xcode project. This job runs on a macOS runner. `channel` picks where the build goes:
|
|
11
|
+
# release -> TestFlight, ready to submit for App Store review; prerelease -> an external
|
|
12
|
+
# TestFlight group; preview -> internal testers only.
|
|
13
|
+
# Secrets are referenced by name only: add them as repository or organization secrets.
|
|
14
|
+
#
|
|
15
|
+
# - name: Archive (@@target@@)
|
|
16
|
+
# if: @@if@@
|
|
17
|
+
# run: |
|
|
18
|
+
# xcodebuild archive \
|
|
19
|
+
# -project "@@xcodeproj@@" \
|
|
20
|
+
# -scheme "@@scheme@@" \
|
|
21
|
+
# -configuration Release \
|
|
22
|
+
# -destination "generic/platform=iOS" \
|
|
23
|
+
# -archivePath "$RUNNER_TEMP/@@scheme@@.xcarchive"
|
|
24
|
+
# xcodebuild -exportArchive \
|
|
25
|
+
# -archivePath "$RUNNER_TEMP/@@scheme@@.xcarchive" \
|
|
26
|
+
# -exportOptionsPlist ExportOptions.plist \
|
|
27
|
+
# -exportPath "$RUNNER_TEMP/export"
|
|
28
|
+
# env:
|
|
29
|
+
# LAUNCHSET_VERSION: ${{ steps.stamp.outputs.marketing-version }}
|
|
30
|
+
# LAUNCHSET_BUILD_NUMBER: ${{ steps.stamp.outputs.build-number }}
|
|
31
|
+
# LAUNCHSET_CHANNEL: ${{ steps.stamp.outputs.channel }}
|
|
32
|
+
# - name: Upload to TestFlight (@@target@@)
|
|
33
|
+
# # Uses a fastlane lane (see "Workflow recipes" in the launchset docs):
|
|
34
|
+
# # lane :testflight do |options|
|
|
35
|
+
# # api_key = app_store_connect_api_key(key_id: ENV.fetch("ASC_KEY_ID"),
|
|
36
|
+
# # issuer_id: ENV.fetch("ASC_ISSUER_ID"), key_content: ENV.fetch("ASC_PRIVATE_KEY"))
|
|
37
|
+
# # upload_to_testflight(api_key: api_key, ipa: options.fetch(:ipa),
|
|
38
|
+
# # skip_waiting_for_build_processing: true)
|
|
39
|
+
# # end
|
|
40
|
+
# if: @@if@@
|
|
41
|
+
# run: bundle exec fastlane testflight ipa:"$RUNNER_TEMP/export/@@scheme@@.ipa"
|
|
42
|
+
# env:
|
|
43
|
+
# # The raw contents of the .p8 key (also used by `verify`).
|
|
44
|
+
# ASC_KEY_ID: ${{ secrets.LAUNCHSET_ASC_KEY_ID }}
|
|
45
|
+
# ASC_ISSUER_ID: ${{ secrets.LAUNCHSET_ASC_ISSUER_ID }}
|
|
46
|
+
# ASC_PRIVATE_KEY: ${{ secrets.LAUNCHSET_ASC_PRIVATE_KEY }}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# --- @@target@@ (web): your build and deploy steps, e.g. ---
|
|
2
|
+
# Remove this step once you've added the build and upload steps below: it stops the release
|
|
3
|
+
# from marking @@target@@ as shipped while nothing builds it.
|
|
4
|
+
- name: Build steps missing (@@target@@)
|
|
5
|
+
if: @@if@@
|
|
6
|
+
run: |
|
|
7
|
+
echo "::error::No build steps for @@target@@ yet. Add them to this workflow and remove this step."
|
|
8
|
+
exit 1
|
|
9
|
+
# The root package.json already has the version. `stamp` also wrote it into any extra `files`
|
|
10
|
+
# of this target.
|
|
11
|
+
#
|
|
12
|
+
# - run: npm ci && npm run build
|
|
13
|
+
# if: @@if@@
|
|
14
|
+
# env:
|
|
15
|
+
# LAUNCHSET_VERSION: ${{ steps.stamp.outputs.version }}
|
|
16
|
+
# LAUNCHSET_BUILD_NUMBER: ${{ steps.stamp.outputs.build-number }}
|
|
17
|
+
# LAUNCHSET_CHANNEL: ${{ steps.stamp.outputs.channel }}
|
|
18
|
+
# - name: Deploy (@@target@@)
|
|
19
|
+
# if: @@if@@
|
|
20
|
+
# run: ./scripts/deploy-web.sh # your own deploy
|