Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/andrew_testing' into feat/integr…
Browse files Browse the repository at this point in the history
…ate_servers
  • Loading branch information
andrew-bierman committed Aug 23, 2024
2 parents 6873f0d + 151e446 commit fa51a11
Show file tree
Hide file tree
Showing 381 changed files with 11,556 additions and 7,207 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": true,
"fixed": [],
"linked": [["@packrat/*", "app", "expo-app", "next-app", "tauri-app", "vite-app"]],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
41 changes: 41 additions & 0 deletions .github/actions/find-or-create-comment/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Creates a comment to show native preview build status
# Or finds the comment if it exists
# Exposes the comment id in env in either case
name: Find or create comment
description: 'Finds the comment of build status or create one. Outputs the comment id.'

inputs:
github-token:
description: 'Github token'
required: true

runs:
using: 'composite'
steps:
- name: Find or create comment
uses: actions/github-script@v6
with:
github-token: ${{ inputs.github-token }}
script: |
const buildName = '${{ env.build-name }}';
const commentMagicPrefix = '${{ env.comment-unique-magic-prefix }}';
const comments = await github.rest.issues.listComments({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
});
const existingComment = comments.data.find(comment => comment.body.startsWith(commentMagicPrefix));
if (existingComment) {
core.exportVariable('comment_id', existingComment.id)
} else {
const commentBody = `${commentMagicPrefix}\n🚀 ${buildName} build has started... Please wait for the results! 🕐`;
const { data: { id: commentId } } = await github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: commentBody
});
core.exportVariable('comment_id', commentId)
}
39 changes: 39 additions & 0 deletions .github/actions/update-native-preview-build-status/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Update build status
description: 'Updates build status comment with the build results'

inputs:
github-token:
description: 'Github token'
required: true
build-outcome:
description: 'Build outcome'
required: true

runs:
using: 'composite'
steps:
- name: Update build status
uses: actions/github-script@v6
with:
github-token: ${{ inputs.github-token }}
script: |
const commentId = '${{ env.comment_id }}';
const buildOutcome = '${{ inputs.build-outcome }}';
const buildStatus = buildOutcome == 'success' ? 'completed' : 'failed';
const buildName = '${{ env.build-name }}';
const workflowUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
let commentBody = `${{ env.comment-unique-magic-prefix }}\n${buildName} build ${buildStatus}!`;
if (buildOutcome == 'success') {
commentBody += `\nYou can download the ${buildName} from the following link:\n${workflowUrl}#artifacts`;
} else {
commentBody += '\nPlease check the workflow logs for more details on the build failure.';
}
await github.rest.issues.updateComment({
owner: context.repo.owner,
repo: context.repo.repo,
comment_id: commentId,
body: commentBody
});
53 changes: 0 additions & 53 deletions .github/workflows/android-build-manual.yml

This file was deleted.

39 changes: 0 additions & 39 deletions .github/workflows/build.yml

This file was deleted.

31 changes: 31 additions & 0 deletions .github/workflows/changeset-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Changeset Release Workflow

on:
push:
branches:
- main

jobs:
release:
name: 🚀 Release Packages
runs-on: ubuntu-latest

steps:
- name: 🛠 Checkout Repository
uses: actions/checkout@v3

- name: 🔧 Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: 📦 Install Dependencies
run: yarn

- name: ✏️ Create Release Pull Request
uses: changesets/action@v1
with:
version: yarn changeset version
commit: "🔖 chore: version bump and changelog"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49 changes: 0 additions & 49 deletions .github/workflows/eas-build-manual.yml

This file was deleted.

36 changes: 36 additions & 0 deletions .github/workflows/eas-cloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Native production pipeline
# Builds on EAS Cloud with auto submission
name: EAS Build & Submit

on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'packages/app/**'
- 'apps/expo/**'
- 'packages/ui/**'
- 'packages/shared-types/**'
- 'packages/config/**'
- 'packages/crosspath/**'

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Setup EAS
uses: ./.github/actions/setup-eas
with:
expo-token: ${{ secrets.EXPO_TOKEN }}

- name: Build on EAS
working-directory: ./apps/expo
run: eas build --platform all --profile production --non-interactive --no-wait --auto-submit
Loading

0 comments on commit fa51a11

Please sign in to comment.