GitHub import, push and build

Import an app from a public, private or organisation repository, push your app's code back to GitHub, and build a React or Vite project on GitHub with a workflow you add yourself.

You can bring an existing project from GitHub into a note and run it as an app, send an app's code to a GitHub repository, and let GitHub build a project that needs a build step. SeeMyNotes never runs npm install or a build on its own servers.

Import a repository

  1. Open an app note and choose Import from GitHub in the toolbar. After the first import the button reads Update from GitHub.

  2. Choose the repository:

    • A public repository: paste its address, for example https://github.com/name/project.

    • A private or organisation repository: connect your GitHub account first (below), then pick it from the list.

  3. Optionally open Advanced to set the Branch (empty means the default branch), the Entry file (empty means index.html) and the Files to publish (one pattern per line, for example dist/**; empty means the whole repository).

  4. Start the import. SeeMyNotes downloads the repository, checks the files and publishes a version.

Import from GitHub.

The note becomes the app: readers see the app, not the note text. The text is kept. The import is screened like any other version. If screening flags it, the version is imported but not live; review the report and publish it anyway with a reason, or fix the repository and import again. Update from GitHub imports the latest commit again.

Static sites and React projects

An app needs an index.html (or an entry file you name). A repository with ready-built files, such as a dist folder, imports directly. A source project that needs a build step needs the build on GitHub flow below. Imports use only the library catalog: a repository that loads packages that are not in it is refused, with a list of what to change.

Connect your GitHub account

For private and organisation repositories, and for pushing, SeeMyNotes connects to GitHub through its own GitHub App. It asks only for read and write access to repository contents and read access to metadata, on the repositories and organisations you choose.

  1. In the GitHub panel, choose Connect GitHub. A GitHub window opens.

  2. Choose which repositories or organisations to share with SeeMyNotes, and approve.

  3. Return to SeeMyNotes. It shows Connected as your GitHub name.

To add more repositories later, choose Share more repositories or organisations with SeeMyNotes. To remove access, choose Disconnect GitHub: SeeMyNotes deletes its access and removes its authorization on GitHub. Your repositories are not changed.

Push your app to GitHub

Pushing sends the app's live code to a repository and branch you choose. Its variables, secrets, connections and data stay in SeeMyNotes.

  1. In the GitHub panel, choose a repository, or Create a repository... (personal or organisation, private or public).

  2. Enter the branch (Push to branch). A new branch is created when you push.

  3. Write a commit message and choose Push to GitHub.

Push the app's code to a repository you choose.

If nothing changed, SeeMyNotes says so and makes no commit. You also get a link to view the commit. A push needs a live version.

Update automatically from GitHub

Instead of choosing Update from GitHub each time, you can let GitHub tell SeeMyNotes about every push.

  1. Open the app note and choose Update from GitHub in the toolbar.

  2. In the panel Automatic updates, turn on Update automatically from GitHub. It is off by default and is set per app.

With it on, each push builds the latest commit of the app's branch, read from GitHub at that moment, not the commit the notification names; if that commit is already live, nothing is built. Late or repeated notifications therefore never put an older version back. The version goes live when screening passes; a version that screening flags waits for your review, as it does with Update from GitHub. If several pushes arrive while an update is running, one more update of the latest commit follows.

What it needs:

The panel shows Last automatic update: the commit, the time and the result (Live, Waiting for your review, Failed or Not built), with the reason in plain words. The hourly import limit applies to automatic updates too.

Build on GitHub

Some projects are written with a build tool, for example a React project built with Vite. Their output is not the code in the repository, so they need a build. SeeMyNotes does not build on its servers. Instead:

  1. SeeMyNotes looks at your repository and recognises a project that needs a build. It needs a package.json with a build script, a package-lock.json (the workflow installs with npm ci) and only npm as package manager.

  2. It shows you a small workflow file to add to your repository.

  3. You commit that file on GitHub.

  4. GitHub builds the code on its own machines when you push, and publishes the result to a separate branch named seemynotes-build.

  5. SeeMyNotes imports that branch.

Review the exact workflow file, then add it to your repository.

Add the workflow

  1. Open the GitHub panel for the repository. When the repository needs a build, it says so and shows the detected tool.

  2. Choose the Folder the build writes to (usually dist for Vite, build for Create React App, out for a static Next.js export). The build must write an index.html there.

  3. Choose Review the workflow file and read the file. It is exactly what you will add: nothing hidden.

  4. Choose Create the file on GitHub. GitHub opens its page for a new file at .github/workflows/seemynotes-build.yml. If the file is too long for GitHub's address, choose Copy the file and paste it into the page. Commit it.

  5. Back in SeeMyNotes, choose I added it: check again.

  6. Push code to the source branch. GitHub runs the workflow; you can watch it in the repository's Actions tab.

  7. When the build has run, choose Import the latest build.

What the workflow does

Keep it up to date

Reopen the GitHub panel to see the state of the build: No build yet, Built from the latest commit or A newer commit is not built yet. When a newer build is available, choose Update the app. Updating a build is your choice. To have each push imported without opening the panel, use automatic updates.

When the build is not offered

The panel lists what is missing:

MessageWhat to do
package.json has no build scriptAdd a build script.
The repository needs a package-lock.jsonCommit the lockfile created by npm.
Only npm is supported for builds on GitHubUse npm instead of yarn or pnpm.
The npm packages are not all in the library catalogSee Library catalog and use catalog libraries.

Restore and history

An imported or pushed app keeps its versions. Restore a previous commit's import from the app's history. See History, checkpoints and export.

Related pages