Compare commits

...
51 Commits
Author SHA1 Message Date
Kudo Chien 5273c2136b chore: create new release 9.0.2 (#366) 2026-11-07 02:11:01 +08:00
Max Lapides f2443cd442 fix(preview): Honor native scheme overrides in development build QR codes (#365) 2026-11-07 01:49:07 +08:00
Kudo Chien 9da89d3617 chore: create new release 9.0.1 (#364) 2026-10-21 02:28:28 +08:00
Kudo Chien a01802364d chore: release through a PR because main is protected (#363) 2026-10-21 02:25:54 +08:00
Kudo Chien c33d336e43 chore: release with the built-in GitHub token (#362) 2026-10-21 01:23:14 +08:00
Kudo Chien 6cb800515a fix: support eas-cli 22 build json fields (#360) 2026-10-21 00:31:36 +08:00
Expo CI eab7a23020 chore: create new release 9.0.0
## [9.0.0](https://github.com/expo/expo-github-action/compare/8.2.1...9.0.0) (2026-06-02)

### ⚠ BREAKING CHANGES

* update tooling and actions to Node 24 (#354)

### New features

* **continuous-deploy-fingerprint:** Add optional environment input for EAS updates ([#325](https://github.com/expo/expo-github-action/issues/325)) ([8134c7a](https://github.com/expo/expo-github-action/commit/8134c7a005e20406f4bdf78ecc1679c373b32a3f))
* **continuous-deploy-fingerprint:** added platform arg to eas update command ([#319](https://github.com/expo/expo-github-action/issues/319)) ([332258e](https://github.com/expo/expo-github-action/commit/332258e32f36861feca287bc8f7021383da59d20))

### Bug fixes

* **continuous-deploy-fingerprint:** correct expiration date logic for build validation ([#307](https://github.com/expo/expo-github-action/issues/307)) ([4b7860b](https://github.com/expo/expo-github-action/commit/4b7860b64d4f0519c52f9c9d51c20f6b73490552))
* fingerprint hash parsing ([#326](https://github.com/expo/expo-github-action/issues/326)) ([10bd583](https://github.com/expo/expo-github-action/commit/10bd583de69c62e4a2f5203e3844314e6ea56d51))
* one more merge confict fix ([#327](https://github.com/expo/expo-github-action/issues/327)) ([24136f8](https://github.com/expo/expo-github-action/commit/24136f8a82a7ce49225511185be02a7a9e30bb51))

### Other chores

* commit built files from [#319](https://github.com/expo/expo-github-action/issues/319) ([#323](https://github.com/expo/expo-github-action/issues/323)) ([a88f4a0](https://github.com/expo/expo-github-action/commit/a88f4a07b2b56b12af23d729bf18b2a9bab21eba))
* update readme to better clarify production continuous deployment caveats ([#328](https://github.com/expo/expo-github-action/issues/328)) ([d933805](https://github.com/expo/expo-github-action/commit/d933805e9c7e860b0c7324ea5b8dcca94d415f8e))
* update tooling and actions to Node 24 ([#354](https://github.com/expo/expo-github-action/issues/354)) ([94ad6f3](https://github.com/expo/expo-github-action/commit/94ad6f36fbc63d652f26fa4edbfc6acacf4f574f))

### Documentation changes

* missing action inputs added to readme ([#275](https://github.com/expo/expo-github-action/issues/275)) ([047ecf1](https://github.com/expo/expo-github-action/commit/047ecf1b39d35e205633972e83470dc3d9be3471))
* **preview:** fix typo in readme ([f6f3acf](https://github.com/expo/expo-github-action/commit/f6f3acfa2728044b4e7e2592fe99c12796336e61))
2026-06-02 09:06:07 +00:00
Juwan Wheatley 94ad6f36fb chore!: update tooling and actions to Node 24 (#354) 2026-06-02 17:43:34 +09:00
Kudo Chien b184ff86a3 [fingerprint] fix db saving (#337)
# Why

fixes https://github.com/expo/expo-github-action/issues/336

# How

- bump `@actions/cache` version
- add delay and retry for db saving
2025-03-04 22:07:14 +08:00
Kudo ChienandYoni Touboul 980b700080 update packages (#334)
# Why

basically for #332
 
# How

- update all packages to latest but not eslint because we were not able to migrade eslint 9 config
- convert bun lockfile to text based lockfile
- fix fingerprint diff output errors
- cherry-pick changes from #333

---------

Co-authored-by: Yoni Touboul <[email protected]>
2025-02-17 22:28:18 +08:00
Will Schurman d933805e9c chore: update readme to better clarify production continuous deployment caveats (#328) 2025-01-13 10:29:25 -08:00
Will Schurman 24136f8a82 fix: one more merge confict fix (#327) 2025-01-13 09:53:40 -08:00
Will Schurman 10bd583de6 fix: fingerprint hash parsing (#326) 2025-01-13 09:48:48 -08:00
Will Schurman 97334d3b21 [continuous-deploy-fingerprint] Add action and docs for continuous deployment on main (#322) 2025-01-13 09:35:10 -08:00
Will Schurman 8134c7a005 feat(continuous-deploy-fingerprint): Add optional environment input for EAS updates (#325) 2025-01-13 09:15:51 -08:00
Will Schurman a88f4a07b2 chore: commit built files from #319 (#323) 2025-01-11 10:02:26 -08:00
Charaf Rezrazi 332258e32f feat(continuous-deploy-fingerprint): added platform arg to eas update command (#319) 2025-01-11 10:00:36 -08:00
Will Schurman 8108b8660b [continuous-deploy-fingerprint] Clean up code slightly (#313) 2024-09-24 17:28:53 -07:00
Nicolas Zilli 6c50f92c62 [continuous-deploy-fingerprint] Add platform as input (#280) 2024-09-24 12:48:00 -07:00
Will Schurman 58d3e4c073 [continuous-deploy-fingerprint] Support EXPO_STAGING env variable (#309) 2024-09-20 10:27:36 -07:00
Tharaka De Silva 4b7860b64d fix(continuous-deploy-fingerprint): correct expiration date logic for build validation (#307) 2024-09-19 14:48:07 -07:00
Will Schurman 141e1af34b [chore] Update lint and config to be more consistent with other expo codebases (#308) 2024-09-19 11:46:17 -07:00
Will Schurman 28c4b0a7fa [continuous-deploy-fingeprint] Output whether each platform build was created or one was reused (#306) 2024-09-19 11:09:33 -07:00
Will Schurman 3e7cb70d7d [continuous-deploy-fingerprint] Update readme to specify fingeprint rtv policy prereq (#305) 2024-09-18 10:40:17 -07:00
Will Schurman 6ea4a8aa0d [continuous-deploy-fingerprint] Update readme for prerequisistes (#304) 2024-09-16 14:59:42 -07:00
Will Schurman e780e57aea [continuous-deploy-fingerprint] Improve build filtering (#303) 2024-09-16 14:45:20 -07:00
Jacint Varga 047ecf1b39 docs: missing action inputs added to readme (#275) 2024-08-29 12:24:45 +08:00
Santiago González Siordia 5947206b86 Update README.md (#288)
typo correction
2024-08-28 17:33:47 -07:00
Yash Goyal 21ad80ce40 Update README.md (#291)
removed some repetitions
2024-08-28 17:33:31 -07:00
Brent Vatne 89b4994f3e Update README.md 2024-05-14 14:34:18 -07:00
Will Schurman 6e93af1a51 Update README.md (#284) 2024-05-10 13:08:08 -07:00
Will Schurman 1aade4c555 Update README.md (#279) 2024-04-25 10:22:42 -07:00
Will Schurman 2bbae854d4 Update README.md (#278) 2024-04-22 12:36:24 -07:00
Will Schurman 1b1cb379f1 [continuous-deploy-fingerprint] Exclude expired builds from continuous deploy for development (#277) 2024-04-19 09:34:22 -07:00
Will Schurman b54de34e8d [continuous-deploy-fingerprint] Add more debug info, clean up output in non-debug, fix build parsing (#274) 2024-04-19 08:35:27 -07:00
Will Schurman bc61229346 Update README.md (#273) 2024-04-18 12:19:12 -07:00
Will Schurman ec8dc84b62 Add continuous-deploy-fingerprint action (#269) 2024-04-16 23:08:47 -07:00
Zachary Ebenfeld f6f3acfa27 docs(preview): fix typo in readme 2024-04-10 13:58:49 +02:00
Kudo Chien 0db524a726 [fingerprint] add saving-db-branch (#264) 2024-03-05 22:19:29 +08:00
Kudo Chien 2c58ed4848 [fingerprint] support customized input previous-git-commit (#263)
# Why

on expo/expo repos, we need the custom base commit because we don't run fingerprint for every commit. this pr added the advanced and customized `previous-git-commit` input
2024-02-27 23:47:44 +08:00
Nick 42a964bd6f [fingerprint] Fix fingerprint action reference in example PR Labeler (#255) 2024-02-27 23:46:47 +08:00
Hirbod cea45074d9 [fingerprint] add support for private repos to README (#257) 2024-02-27 20:53:29 +08:00
Mateus Craveiro 47703a0179 [fingerprint] fix typo (#260) 2024-02-27 20:52:28 +08:00
Mateus Craveiro 526dc5f131 [fingerprint] Fix example command (#261) 2024-02-27 20:52:02 +08:00
Kudo Chien 190a2cdf2b [fingerprint] add previous and current git commit to outputs (#262) 2024-02-27 20:50:53 +08:00
Will Schurman 15896ae746 [fingerprint] Add current and previous fingerprint to step outputs (#253) 2024-01-24 13:47:29 -08:00
Expo CI c7b66a9c32 chore: create new release 8.2.1
## [8.2.1](https://github.com/expo/expo-github-action/compare/8.2.0...8.2.1) (2024-01-15)

### Bug fixes

* **preview:** filter slugs with special characters to match dev clients `exp+<slug>` scheme ([#252](https://github.com/expo/expo-github-action/issues/252)) ([b8a9be8](https://github.com/expo/expo-github-action/commit/b8a9be8336bf5609f8e299a8486f9a2bf7073f8a))
2024-01-15 12:35:54 +00:00
Cedric van Putten b8a9be8336 fix(preview): filter slugs with special characters to match dev clients exp+<slug> scheme (#252)
* test(preview): add tests for eas update qr code urls

* fix(preview): use same filtering of `slug` as done in `expo-dev-client`

* chore: rebuild actions
2024-01-15 13:28:27 +01:00
Expo CI b547b4d94a chore: create new release 8.2.0
## [8.2.0](https://github.com/expo/expo-github-action/compare/8.1.0...8.2.0) (2023-12-02)

### New features

* **preview:** add `qr-target` and use proper QR codes for `expo-go` and `dev-build` ([#247](https://github.com/expo/expo-github-action/issues/247)) ([54efbfd](https://github.com/expo/expo-github-action/commit/54efbfdf1d130888a5f13b73fb7adc85edeb8855))

### Documentation changes

* **preview:** clarify the branch and workflow trigger relations ([#246](https://github.com/expo/expo-github-action/issues/246)) ([ccfad6f](https://github.com/expo/expo-github-action/commit/ccfad6f148eaa709959a64b1be216481f4ca54ff))
2023-12-02 15:49:36 +00:00
Cedric van Putten 54efbfdf1d feature(preview): add qr-target and use proper QR codes for expo-go and dev-build (#247)
* fix(preview): use app slug to generate proper EAS Update preview

* ci(test): remove faulty implemented test case for app schemes

* chore: add jest snapshot workaround for prettier v2

See https://jestjs.io/docs/configuration/\#prettierpath-string

* chore(preview): rebuild preview subaction

* fix(preview): allow users to force EAS Update QR codes to Expo Go

* refactor(preview): use `qr-target` with automatically inferred value instead of `expo-go`

* chore: rebuild files

* refactor(preview): use `dev-build` instead of `dev-client` and validate input

* chore: rebuild files

* test(preview): add e2e test for infered `dev-build` qr code
2023-12-02 16:48:22 +01:00
Cedric van Putten ccfad6f148 docs(preview): clarify the branch and workflow trigger relations (#246) 2023-11-27 09:44:36 +01:00
82 changed files with 197027 additions and 50747 deletions

No files matched your search

+32
View File
@@ -0,0 +1,32 @@
module.exports = {
root: true,
extends: ['universe/node'],
ignorePatterns: ['build/**', 'node_modules/**'],
rules: {
'prettier/prettier': 'error',
'sort-imports': [
'warn',
{
ignoreDeclarationSort: true,
},
],
curly: 'warn',
},
overrides: [
{
files: ['*.ts', '*.tsx', '*.d.ts'],
extends: ['universe/shared/typescript-analysis'],
excludedFiles: ['**/tests/**'],
parserOptions: {
project: './tsconfig.json',
},
rules: {
'@typescript-eslint/prefer-nullish-coalescing': ['warn', { ignorePrimitives: true }],
'@typescript-eslint/no-confusing-void-expression': 'off',
'@typescript-eslint/no-floating-promises': 'off',
'@typescript-eslint/await-thenable': 'off',
'@typescript-eslint/return-await': ['warn', 'error-handling-correctness-only'],
},
},
],
};
+1 -1
View File
@@ -3,4 +3,4 @@
* text=auto
# These files are text and should be normalized (Convert crlf => lf)
build/** text eol=lf
build/** text eol=lf linguist-generated=true
+3 -3
View File
@@ -8,18 +8,18 @@ inputs:
node-version:
description: Version of Node to use
default: 20.x
default: 24.x
runs:
using: composite
steps:
- name: 🏗 Setup Bun
if: ${{ runner.os != 'Windows' }}
uses: oven-sh/setup-bun@v1
uses: oven-sh/setup-bun@v2
with:
bun-version: ${{ inputs.bun-version }}
- name: 🏗 Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
+117 -48
View File
@@ -6,17 +6,22 @@ on:
workflow_dispatch:
inputs:
release:
description: 'type "release" to create the release (main branch only)'
description: 'type "release" to open a release PR (main branch only)'
required: false
concurrency:
group: release
cancel-in-progress: false
permissions: {}
jobs:
dryrun:
if: ${{ github.ref != 'refs/heads/main' || github.event.inputs.release != 'release' }}
runs-on: ubuntu-latest
permissions:
# semantic-release checks push access even in dry-run mode
contents: write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
@@ -25,75 +30,139 @@ jobs:
uses: ./.github/actions/setup
- name: 📦 Install dependencies
run: bun install
run: bun install --frozen-lockfile
- name: 📋 Dry-running release
run: bun semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ github.token }}
publish:
release-pr:
if: ${{ github.ref == 'refs/heads/main' && github.event.inputs.release == 'release' }}
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
with:
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}
# Keep the token out of .git/config while installing packages
persist-credentials: false
- name: 🏗 Setup runner
uses: ./.github/actions/setup
- name: 📦 Install dependencies
run: bun install
run: bun install --frozen-lockfile
- name: 📋 Release code
run: bun semantic-release
- name: 📋 Resolve next release
run: bun semantic-release --dry-run
env:
GITHUB_TOKEN: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}
GIT_AUTHOR_NAME: Expo CI
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: Expo CI
GIT_COMMITTER_EMAIL: [email protected]
GITHUB_TOKEN: ${{ github.token }}
RELEASE_OUTPUT_DIR: ${{ runner.temp }}/release
tags:
needs: publish
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
with:
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}
- name: 🏗 Setup runner
uses: ./.github/actions/setup
- name: 👷 Force repo to latest
run: git fetch --all && git pull
- name: 📦 Install dependencies
run: bun install
- name: 📦 Install semver
run: bun add --dev semver
- name: 🕵️ Resolve major version
uses: actions/github-script@v7
id: version
with:
result-encoding: string
script: |
const semver = require('semver')
const { version } = require('./package.json')
return semver.major(version)
- name: 👷 Configure git
- name: 📝 Push release branch
env:
GH_TOKEN: ${{ github.token }}
RELEASE_DIR: ${{ runner.temp }}/release
run: |
if [ ! -f "$RELEASE_DIR/version" ]; then
echo "No changes to release"
exit 0
fi
version=$(cat "$RELEASE_DIR/version")
branch="release/$version"
title="chore: create new release $version"
npm pkg set version="$version"
{ cat "$RELEASE_DIR/notes.md"; echo; cat CHANGELOG.md; } > CHANGELOG.md.tmp
mv CHANGELOG.md.tmp CHANGELOG.md
git config user.name "Expo CI"
git config user.email "[email protected]"
git switch --create "$branch"
git commit --message "$title" -- package.json CHANGELOG.md
# Lets git read GH_TOKEN through gh, so the token stays out of the command line
gh auth setup-git
git push --force origin "$branch"
- name: 🧹 Clean repo
run: git clean . -xdf && git reset --hard HEAD && git pull && git fetch --tags
# A person opens the PR, so Actions doesn't need permission to create or approve PRs, and CI runs on it
url="https://github.com/${GITHUB_REPOSITORY}/compare/main...${branch}?expand=1&title=$(jq -rn --arg t "$title" '$t|@uri')"
echo "::notice::Open the release PR: $url"
{
echo "## Release $version"
echo
echo "[Open the release PR]($url)"
echo
cat "$RELEASE_DIR/notes.md"
} >> "$GITHUB_STEP_SUMMARY"
- name: 📋 Update tags
run: git tag --force v${{ steps.version.outputs.result }} && git push --force --tags
publish:
# Runs when a release PR from `release-pr` is merged
if: "${{ github.event_name == 'push' && startsWith(github.event.head_commit.message, 'chore: create new release ') }}"
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: read
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🕵️ Validate release PR
env:
GH_TOKEN: ${{ github.token }}
run: |
version=$(node -p "require('./package.json').version")
fail() {
echo "::error::$1. Revert this commit and run the release workflow again."
exit 1
}
# GitHub may take a moment to link a new commit to its PR
for attempt in 1 2 3 4 5; do
pr=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA/pulls" --jq '[.[] | select(.base.ref == "main" and .merged_at != null)][0]')
[ -n "$pr" ] && [ "$pr" != "null" ] && break
sleep 10
done
if [ -z "$pr" ] || [ "$pr" = "null" ]; then
echo "::error::No merged PR found for this commit yet. Re-run this job."
exit 1
fi
[ "$(jq -r .head.ref <<< "$pr")" = "release/$version" ] || fail "The PR is not from release/$version"
commits=$(gh api "repos/$GITHUB_REPOSITORY/pulls/$(jq -r .number <<< "$pr")/commits")
[ "$(jq length <<< "$commits")" -eq 1 ] || fail "The release PR must have exactly one commit"
# Other merges since the release branch was created would ship without changelog entries
release_base=$(jq -r '.[0].parents[0].sha' <<< "$commits")
merge_parent=$(gh api "repos/$GITHUB_REPOSITORY/commits/$GITHUB_SHA" --jq '.parents[0].sha')
[ "$release_base" = "$merge_parent" ] || fail "main changed after the release branch was created"
- name: 📋 Create release
env:
GH_TOKEN: ${{ github.token }}
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
run: |
version=$(node -p "require('./package.json').version")
if ! [[ "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
echo "::error::Invalid version \"$version\" in package.json"
exit 1
fi
# Squash merges add " (#123)" to the title
subject="${COMMIT_MESSAGE%%$'\n'*}"
if [[ "$subject" != "chore: create new release $version" && "$subject" != "chore: create new release $version (#"* ]]; then
echo "::error::Commit message does not match version $version in package.json"
exit 1
fi
# The newest section of CHANGELOG.md holds the notes for this release
awk '/^## \[/ { n++ } n == 1' CHANGELOG.md > "$RUNNER_TEMP/notes.md"
# Skip when a re-run finds the release already made, so the major tag can still move
if ! gh release view "$version" > /dev/null 2>&1; then
gh release create "$version" --target "$GITHUB_SHA" --title "$version" --notes-file "$RUNNER_TEMP/notes.md"
fi
major="v${version%%.*}"
git tag --force "$major" "$GITHUB_SHA"
git push --force origin "$major"
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
fi
- name: 🗂 Upload build
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
if: ${{ failure() && steps.diff.conclusion == 'failure' }}
with:
name: build
+34 -8
View File
@@ -84,6 +84,10 @@ jobs:
- name: 🏗 Setup project
run: bun create expo ./temp --template blank
- name: 🏗 Setup `expo-dev-client`
working-directory: ./temp
run: bun expo install expo-dev-client
- name: 👷 Configure project
working-directory: ./temp
run: |
@@ -165,27 +169,49 @@ jobs:
throw new Error('Message output is empty');
}
- name: 🚀 Create preview (with custom app scheme)
- name: 🚀 Create preview (with "dev-build" QR target)
if: ${{ env.hasAuth == 'true' }}
uses: ./preview
id: custom-app-scheme
id: dev-build-qr
env:
EXPO_TEST_GITHUB_PULL: 206
with:
app-scheme: thisisacustomscheme
working-directory: ./temp
command: eas update --branch test --message "This is a test"
comment: false
- name: 🧪 Comment has custom app scheme
- name: 🧪 Comment has "dev-build" QR
if: ${{ env.hasAuth == 'true' }}
uses: actions/github-script@v7
with:
script: |
const comment = `${{ steps.custom-app-scheme.outputs.comment }}`
if (!comment || !comment.includes('thisisacustomscheme')) {
console.log({ comment });
throw new Error('Message output does not include the app scheme from action input');
const qrUrl = `${{ steps.dev-build-qr.outputs.qr }}`
if (!qrUrl || !qrUrl.includes('appScheme')) {
console.log({ qrUrl });
throw new Error('QR URL is missing "appScheme" to point to a dev build');
}
- name: 🚀 Create preview (with "expo-go" QR target from input)
if: ${{ env.hasAuth == 'true' }}
uses: ./preview
id: expo-go-qr
env:
EXPO_TEST_GITHUB_PULL: 206
with:
working-directory: ./temp
qr-target: expo-go
command: eas update --branch test --message "This is a test"
comment: false
- name: 🧪 Comment has "expo-go" QR code
if: ${{ env.hasAuth == 'true' }}
uses: actions/github-script@v7
with:
script: |
const qrUrl = `${{ steps.expo-go-qr.outputs.qr }}`
if (!qrUrl || qrUrl.includes('appScheme')) {
console.log({ qrUrl });
throw new Error('QR URL points to a dev build, not Expo Go');
}
preview-comment:
+16 -8
View File
@@ -1,3 +1,6 @@
const fs = require('fs');
const path = require('path');
const rules = [
{ type: 'feat', release: 'minor', title: 'New features' },
{ type: 'feature', release: 'minor', title: 'New features' },
@@ -32,13 +35,18 @@ module.exports = {
commitGroupsSort: (a, z) => sortMap[a.title] - sortMap[z.title],
},
}],
'@semantic-release/changelog',
['@semantic-release/npm', { npmPublish: false }],
["@semantic-release/exec", { publishCmd: 'yarn build' }],
['@semantic-release/git', {
message: 'chore: create new release ${nextRelease.version}\n\n${nextRelease.notes}',
assets: ['package.json', 'CHANGELOG.md', 'build/*'],
}],
'@semantic-release/github',
// The release workflow runs a dry run and uses this output to make the release branch.
// Must stay after the notes generator, so `nextRelease.notes` is filled in.
{
generateNotes(pluginConfig, { nextRelease }) {
const outputDir = process.env.RELEASE_OUTPUT_DIR;
if (outputDir) {
fs.mkdirSync(outputDir, { recursive: true });
fs.writeFileSync(path.join(outputDir, 'version'), nextRelease.version);
fs.writeFileSync(path.join(outputDir, 'notes.md'), nextRelease.notes.trim() + '\n');
}
return '';
},
},
],
};
+64
View File
@@ -1,3 +1,67 @@
## [9.0.2](https://github.com/expo/expo-github-action/compare/9.0.1...9.0.2) (2026-11-06)
### Bug fixes
* **preview:** Honor native scheme overrides in development build QR codes ([#365](https://github.com/expo/expo-github-action/issues/365)) ([f2443cd](https://github.com/expo/expo-github-action/commit/f2443cd44215902958beadca9aa808395ff56eba))
## [9.0.1](https://github.com/expo/expo-github-action/compare/9.0.0...9.0.1) (2026-10-20)
### Bug fixes
* support eas-cli 22 build json fields ([#360](https://github.com/expo/expo-github-action/issues/360)) ([6cb8005](https://github.com/expo/expo-github-action/commit/6cb800515acdea84989f9918e6448774815d8a78))
### Other chores
* release through a PR because main is protected ([#363](https://github.com/expo/expo-github-action/issues/363)) ([a018023](https://github.com/expo/expo-github-action/commit/a01802364dfe057a6f67a5cb1892b6f529e2d624))
* release with the built-in GitHub token ([#362](https://github.com/expo/expo-github-action/issues/362)) ([c33d336](https://github.com/expo/expo-github-action/commit/c33d336e43640e810176b257b3919c7d408afc7e))
## [9.0.0](https://github.com/expo/expo-github-action/compare/8.2.1...9.0.0) (2026-06-02)
### ⚠ BREAKING CHANGES
* update tooling and actions to Node 24 (#354)
### New features
* **continuous-deploy-fingerprint:** Add optional environment input for EAS updates ([#325](https://github.com/expo/expo-github-action/issues/325)) ([8134c7a](https://github.com/expo/expo-github-action/commit/8134c7a005e20406f4bdf78ecc1679c373b32a3f))
* **continuous-deploy-fingerprint:** added platform arg to eas update command ([#319](https://github.com/expo/expo-github-action/issues/319)) ([332258e](https://github.com/expo/expo-github-action/commit/332258e32f36861feca287bc8f7021383da59d20))
### Bug fixes
* **continuous-deploy-fingerprint:** correct expiration date logic for build validation ([#307](https://github.com/expo/expo-github-action/issues/307)) ([4b7860b](https://github.com/expo/expo-github-action/commit/4b7860b64d4f0519c52f9c9d51c20f6b73490552))
* fingerprint hash parsing ([#326](https://github.com/expo/expo-github-action/issues/326)) ([10bd583](https://github.com/expo/expo-github-action/commit/10bd583de69c62e4a2f5203e3844314e6ea56d51))
* one more merge confict fix ([#327](https://github.com/expo/expo-github-action/issues/327)) ([24136f8](https://github.com/expo/expo-github-action/commit/24136f8a82a7ce49225511185be02a7a9e30bb51))
### Other chores
* commit built files from [#319](https://github.com/expo/expo-github-action/issues/319) ([#323](https://github.com/expo/expo-github-action/issues/323)) ([a88f4a0](https://github.com/expo/expo-github-action/commit/a88f4a07b2b56b12af23d729bf18b2a9bab21eba))
* update readme to better clarify production continuous deployment caveats ([#328](https://github.com/expo/expo-github-action/issues/328)) ([d933805](https://github.com/expo/expo-github-action/commit/d933805e9c7e860b0c7324ea5b8dcca94d415f8e))
* update tooling and actions to Node 24 ([#354](https://github.com/expo/expo-github-action/issues/354)) ([94ad6f3](https://github.com/expo/expo-github-action/commit/94ad6f36fbc63d652f26fa4edbfc6acacf4f574f))
### Documentation changes
* missing action inputs added to readme ([#275](https://github.com/expo/expo-github-action/issues/275)) ([047ecf1](https://github.com/expo/expo-github-action/commit/047ecf1b39d35e205633972e83470dc3d9be3471))
* **preview:** fix typo in readme ([f6f3acf](https://github.com/expo/expo-github-action/commit/f6f3acfa2728044b4e7e2592fe99c12796336e61))
## [8.2.1](https://github.com/expo/expo-github-action/compare/8.2.0...8.2.1) (2024-01-15)
### Bug fixes
* **preview:** filter slugs with special characters to match dev clients `exp+<slug>` scheme ([#252](https://github.com/expo/expo-github-action/issues/252)) ([b8a9be8](https://github.com/expo/expo-github-action/commit/b8a9be8336bf5609f8e299a8486f9a2bf7073f8a))
## [8.2.0](https://github.com/expo/expo-github-action/compare/8.1.0...8.2.0) (2023-12-02)
### New features
* **preview:** add `qr-target` and use proper QR codes for `expo-go` and `dev-build` ([#247](https://github.com/expo/expo-github-action/issues/247)) ([54efbfd](https://github.com/expo/expo-github-action/commit/54efbfdf1d130888a5f13b73fb7adc85edeb8855))
### Documentation changes
* **preview:** clarify the branch and workflow trigger relations ([#246](https://github.com/expo/expo-github-action/issues/246)) ([ccfad6f](https://github.com/expo/expo-github-action/commit/ccfad6f148eaa709959a64b1be216481f4ca54ff))
## [8.1.0](https://github.com/expo/expo-github-action/compare/8.0.0...8.1.0) (2023-11-24)
+8 -3
View File
@@ -7,6 +7,7 @@
- [node](https://nodejs.org/) (active Node LTS or higher is recommended)
- [yarn](https://yarnpkg.com/)
3. Install the Node packages (`yarn install`)
4. Install Bun (`curl -fsSL https://bun.sh/install | bash`)
## 🏎️ Running a custom version
@@ -45,15 +46,19 @@ To get your PR merged as fast as possible, please make sure you have done the fo
## 🚀 Releasing a new version
To release a new version for GitHub Actions, we have to create a new release in GitHub. You can run the `Release` workflow to generate a new version, changelog, and GitHub release.
To release a new version for GitHub Actions, we have to create a new release in GitHub through a release PR.
That workflow also bumps up the major version tag, like `v7`. In cases of failure, you could run this manually.
1. Run the `Release` workflow on `main` and type `release`. It pushes a `release/x.y.z` branch that bumps `package.json` and `CHANGELOG.md`.
2. Open the PR from the link in the workflow summary, then review and merge it. Keep the `chore: create new release x.y.z` title, because the workflow uses it to find release merges. Merge it before any other PR. If `main` changed in between, the release fails, and you need to revert the release PR and start again.
3. After the merge, the workflow creates the `x.y.z` tag and GitHub release, and moves the major version tag, like `v7`.
In cases of failure, you could move the major version tag manually.
```bash
$ git checkout main
$ git fetch --tags && git pull
$ git tag --force v{major}
$ git push --force --tags
$ git push --force origin v{major}
```
When the release is fully tagged and ready, we still need to submit it to the marketplace. You can do that by editing the published version on [GitHub's release page](https://github.com/expo/expo-github-action/releases). Just saving it again notifies the marketplace of the new version.
+4 -4
View File
@@ -33,7 +33,7 @@
## What's inside?
With this Expo action, you have full access to [Expo CLI][link-expo-cli] and [EAS CLI][link-eas-cli].
It lets you automate the `expo publish` or `eas build` commands, leaving you with more time to work on your project.
It lets you automate the `eas update` or `eas build` commands, leaving you with more time to work on your project.
Some additional features are included to make the usage of this action as simple as possible, like caching and authentication.
## Configuration options
@@ -45,8 +45,6 @@ Here is a summary of all the input options you can use.
| variable | default | description |
| ------------------ | ------- | --------------------------------------------------------------------------------------------- |
| **expo-version** | - | Expo CLI version to install _(skips when omitted)_ |
| **expo-cache** | `true` | If it should use the GitHub actions cache ([read more](#using-the-built-in-cache)) |
| **eas-version** | - | EAS CLI version to install _(skips when omitted)_ |
| **eas-cache** | `true` | If it should use the GitHub actions cache ([read more](#using-the-built-in-cache)) |
| **packager** | `yarn` | Package manager to use _(e.g. `bun`, `yarn`, or `npm`)_ |
@@ -174,7 +172,9 @@ jobs:
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto
# `github.event.pull_request.head.ref` is only available on `pull_request` triggers.
# Use your own, or keep the automatically inferred branch name from `--auto`, when using different triggers.
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
```
## Things to know
+1 -1
View File
@@ -6,7 +6,7 @@ branding:
icon: terminal
color: gray-dark
runs:
using: node20
using: node24
main: build/setup/index.js
inputs:
expo-version:
+3615 -9984
View File
File diff suppressed because it is too large. Load diff
-178
View File
@@ -501,102 +501,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
encoding
MIT
Copyright (c) 2012-2014 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
iconv-lite
MIT
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
once
ISC
The ISC License
@@ -616,31 +520,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
safer-buffer
MIT
MIT License
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
semver
ISC
The ISC License
@@ -660,9 +539,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tr46
MIT
tunnel
MIT
The MIT License (MIT)
@@ -724,60 +600,6 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
Copyright (c) 2014, Domenic Denicola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
whatwg-url
MIT
The MIT License (MIT)
Copyright (c) 2015–2016 Sebastian Mayr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wrappy
ISC
The ISC License
File diff suppressed because it is too large. Load diff
+162
View File
@@ -0,0 +1,162 @@
@actions/core
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/exec
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/http-client
MIT
Actions Http Client for Node.js
Copyright (c) GitHub, Inc.
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/io
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/tool-cache
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
semver
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tunnel
MIT
The MIT License (MIT)
Copyright (c) 2012 Koichi Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
undici
MIT
MIT License
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
File diff suppressed because it is too large. Load diff
+619
View File
@@ -0,0 +1,619 @@
@actions/core
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/exec
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/github
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/http-client
MIT
Actions Http Client for Node.js
Copyright (c) GitHub, Inc.
All rights reserved.
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and
associated documentation files (the "Software"), to deal in the Software without restriction,
including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/io
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@actions/tool-cache
MIT
The MIT License (MIT)
Copyright 2019 GitHub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@fastify/busboy
MIT
Copyright Brian White. All rights reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to
deal in the Software without restriction, including without limitation the
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
sell copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
IN THE SOFTWARE.
@octokit/auth-token
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/core
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/endpoint
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/graphql
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/plugin-paginate-rest
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/plugin-rest-endpoint-methods
MIT
MIT License Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@octokit/request
MIT
The MIT License
Copyright (c) 2018 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
@octokit/request-error
MIT
The MIT License
Copyright (c) 2019 Octokit contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
before-after-hook
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright 2018 Gregor Martynus and other contributors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
deprecation
ISC
The ISC License
Copyright (c) Gregor Martynus and contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
once
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
semver
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tunnel
MIT
The MIT License (MIT)
Copyright (c) 2012 Koichi Kobayashi
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
undici
MIT
MIT License
Copyright (c) Matteo Collina and Undici contributors
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
universal-user-agent
ISC
# [ISC License](https://spdx.org/licenses/ISC)
Copyright (c) 2018, Gregor Martynus (https://github.com/gr2m)
Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
wrappy
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+13802 -4662
View File
File diff suppressed because it is too large. Load diff
+356 -25
View File
@@ -731,6 +731,362 @@ Apache-2.0
limitations under the License.
@protobuf-ts/runtime
(Apache-2.0 AND BSD-3-Clause)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
@protobuf-ts/runtime-rpc
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
asynckit
MIT
The MIT License (MIT)
@@ -1166,31 +1522,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
mime-db
MIT
(The MIT License)
+13745 -4656
View File
File diff suppressed because it is too large. Load diff
+356 -25
View File
@@ -731,6 +731,362 @@ Apache-2.0
limitations under the License.
@protobuf-ts/runtime
(Apache-2.0 AND BSD-3-Clause)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
@protobuf-ts/runtime-rpc
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
asynckit
MIT
The MIT License (MIT)
@@ -1166,31 +1522,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
mime-db
MIT
(The MIT License)
+14576 -4728
View File
File diff suppressed because it is too large. Load diff
+356 -25
View File
@@ -731,6 +731,362 @@ Apache-2.0
limitations under the License.
@protobuf-ts/runtime
(Apache-2.0 AND BSD-3-Clause)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
@protobuf-ts/runtime-rpc
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
asynckit
MIT
The MIT License (MIT)
@@ -1166,31 +1522,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
mime-db
MIT
(The MIT License)
+3615 -9984
View File
File diff suppressed because it is too large. Load diff
-178
View File
@@ -501,102 +501,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
encoding
MIT
Copyright (c) 2012-2014 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
iconv-lite
MIT
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
once
ISC
The ISC License
@@ -616,31 +520,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
safer-buffer
MIT
MIT License
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
semver
ISC
The ISC License
@@ -660,9 +539,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tr46
MIT
tunnel
MIT
The MIT License (MIT)
@@ -724,60 +600,6 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
Copyright (c) 2014, Domenic Denicola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
whatwg-url
MIT
The MIT License (MIT)
Copyright (c) 2015–2016 Sebastian Mayr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wrappy
ISC
The ISC License
+4239 -10995
View File
File diff suppressed because it is too large. Load diff
-216
View File
@@ -501,121 +501,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
encoding
MIT
Copyright (c) 2012-2014 Andris Reinman
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
iconv-lite
MIT
Copyright (c) 2011 Alexander Shtuchkin
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
lru-cache
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
node-fetch
MIT
The MIT License (MIT)
Copyright (c) 2016 David Frank
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
once
ISC
The ISC License
@@ -635,31 +520,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
safer-buffer
MIT
MIT License
Copyright (c) 2018 Nikita Skovoroda <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
semver
ISC
The ISC License
@@ -679,9 +539,6 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
tr46
MIT
tunnel
MIT
The MIT License (MIT)
@@ -743,60 +600,6 @@ Permission to use, copy, modify, and/or distribute this software for any purpose
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
uuid
MIT
The MIT License (MIT)
Copyright (c) 2010-2020 Robert Kieffer and other contributors
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
webidl-conversions
BSD-2-Clause
# The BSD 2-Clause License
Copyright (c) 2014, Domenic Denicola
All rights reserved.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
whatwg-url
MIT
The MIT License (MIT)
Copyright (c) 2015–2016 Sebastian Mayr
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
wrappy
ISC
The ISC License
@@ -814,22 +617,3 @@ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
yallist
ISC
The ISC License
Copyright (c) Isaac Z. Schlueter and Contributors
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+13773 -4645
View File
File diff suppressed because it is too large. Load diff
+356 -25
View File
@@ -731,6 +731,362 @@ Apache-2.0
limitations under the License.
@protobuf-ts/runtime
(Apache-2.0 AND BSD-3-Clause)
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
@protobuf-ts/runtime-rpc
Apache-2.0
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
asynckit
MIT
The MIT License (MIT)
@@ -1166,31 +1522,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
is-plain-object
MIT
The MIT License (MIT)
Copyright (c) 2014-2017, Jon Schlinkert.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
mime-db
MIT
(The MIT License)
+56841
View File
File diff suppressed because it is too large. Load diff
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -6,7 +6,7 @@ branding:
icon: message-circle
color: gray-dark
runs:
using: node20
using: node24
main: ../build/command/index.js
inputs:
github-token:
@@ -0,0 +1,95 @@
<div align="center">
<h1>continuous-deploy-fingerprint-info</h1>
<p>Fetch and output fingerprints and matching builds for use in continuous deployment workflows.</p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#usage"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#available-outputs"><b>Outputs</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#caveats"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
> **Warning**
> This sub action is still in development and might change without notice. It is not yet ready for use.
## Overview
`continuous-deploy-fingerprint-info` is a GitHub Action that fetches fingerprints and matching builds for use in continuous deployment workflows.
### Prerequisites
- Must have expo-updates set up with a `fingerprint` runtime version policy.
- Must be configured for EAS Update.
### Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| --------------------- | -------------- | ---------------------------------------------------------------------------- |
| **profile** | (required) | The EAS Build profile to use |
| **environment** | - | The environment to use for server-side defined EAS environment variables |
| **working-directory** | - | The relative directory of your Expo app |
| **platform** | `all` | The platform to use (available options are `ios`, `android` and `all`) |
| **github-token** | `github.token` | GitHub token to use when pushing version bump commit ([read more](#github-tokens)) |
And the action will generate these [outputs](#available-outputs) for other actions to do something based on what this action did.
### Available outputs
In case you want to reuse this action for other purpose, this action will set the following action outputs.
| output name | description |
| ------------------------ | ------------------------------ |
| **ios-fingerprint** | The iOS fingerprint of the current commit. |
| **android-fingerprint** | The Android fingerprint of the current commit. |
| **android-build-id** | ID for matching Android EAS Build if one exists for fingerprint. |
| **ios-build-id** | ID for matching iOS EAS Build if one exists for fingerprint. |
## Caveats
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication][link-gha-token] from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable or add the **github-token** input.
## Example workflows
Before diving into the workflow examples, you should know the basics of GitHub Actions.
You can read more about this in the [GitHub Actions documentation][link-actions].
See documentation for the `continuous-deploy-fingerprint` for how one may use this action.
<div align="center">
<br />
with :heart:&nbsp;<strong>Expo</strong>
<br />
</div>
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-gha-token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
@@ -0,0 +1,39 @@
---
name: Expo GitHub Action - Get Fingerprint Info and Matching Builds for Continuous Deployment use cases
author: Expo
description: Get the current fingeprint and any matching builds. Designed to be used in tandem with continuous-deploy-fingerprint for continuous deployment.
branding:
icon: smartphone
color: gray-dark
runs:
using: node24
main: ../build/continuous-deploy-fingerprint-info/index.js
inputs:
profile:
description: The EAS Build profile to use, must have EAS Update channel specified in eas.json
required: true
platform:
description: The platform on which to publish. Possible values are 'all' | 'android' | 'ios'
required: false
default: all
environment:
description: The environment to use for server-side defined EAS environment variables during command execution
required: false
github-token:
description: GitHub token to use when commenting on PR
required: false
default: ${{ github.token }}
working-directory:
description: The relative directory of your Expo app
required: false
default: ${{ github.workspace }}
outputs:
android-fingerprint:
description: The Android fingerprint of the current commit.
ios-fingerprint:
description: The iOS fingerprint of the current commit.
android-build-id:
description: ID for Android EAS Build with matching fingerprint.
ios-build-id:
description: ID for iOS EAS Build with matching fingerprint.
+274
View File
@@ -0,0 +1,274 @@
<div align="center">
<h1>continuous-deploy-fingerprint</h1>
<p>Continuously deploys an Expo project using EAS Build and EAS Update in combination with a fingerprint runtime version</p>
</div>
<p align="center">
<a href="https://github.com/expo/expo-github-action/releases" title="Latest release">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=49505A">
<img alt="Latest release" src="https://img.shields.io/github/package-json/v/expo/expo-github-action?style=flat-square&color=0366D6&labelColor=D1D5DA" />
</picture>
</a>
<a href="https://github.com/expo/expo-github-action/actions" title="Workflow status">
<picture>
<source media="(prefers-color-scheme: dark)" srcset="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=49505A">
<img alt="Workflow status" src="https://img.shields.io/github/actions/workflow/status/expo/expo-github-action/test.yml?branch=main&style=flat-square&labelColor=D1D5DA" />
</picture>
</a>
</p>
<p align="center">
<a href="#usage"><b>Usage</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#available-outputs"><b>Outputs</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#example-workflows"><b>Examples</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="#caveats"><b>Caveats</b></a>
&nbsp;&nbsp;&mdash;&nbsp;&nbsp;
<a href="https://github.com/expo/expo-github-action/blob/main/CHANGELOG.md"><b>Changelog</b></a>
</p>
<br />
> **Warning**
> This sub action is still in development and might change without notice. It is not yet ready for use.
## Overview
`continuous-deploy-fingerprint` is a GitHub Action that continuously deploys an Expo project using the expo-updates fingerprint runtime version policy. When run, it performs the following tasks in order, once for each platform:
1. Check current fingerprint of the project.
2. Check for EAS builds with specified profile matching that fingerprint.
3. If a in-progress or finished EAS build doesn't exist, start one. Optionally submit any created builds to their respective app stores.
4. Publish an update on EAS update.
5. If run on a PR, post a comment indicating what was done.
### Prerequisites
- Must have expo-updates set up with a `fingerprint` runtime version policy.
- Must be configured for EAS Update.
- Should configure [`expo-dev-client`](https://docs.expo.dev/versions/latest/sdk/dev-client/) (recommended).
- Must have run the builds at least once manually in order to configure credentials. This can be done by running `eas build --profile <profile> --platform <platform>` for each profile and platform you have set up for this action.
- When using EAS Build auto submission (`auto-submit-builds`), must have configured [EAS Submit](https://docs.expo.dev/submit/introduction/) and run submissions manually at least once.
### Configuration options
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| ----------------------- | -------------- | ---------------------------------------------------------------------------- |
| **profile** | (required) | The EAS Build profile to use |
| **branch** | (required) | The EAS Update branch on which to publish |
| **environment** | - | The environment to use for server-side defined EAS environment variables |
| **working-directory** | - | The relative directory of your Expo app |
| **platform** | `all` | The platform to deploy on (available options are `ios`, `android` and `all`) |
| **auto-submit-builds** | - | Whether to add the `--auto-submit` flag to the issued `eas build` commands. |
| **app-scheme** | - | Override the native scheme shown in the comment and used for development-build QR codes. Omit it to use `exp+<slug>` for QR codes. Does not affect Expo Go QR codes. |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
For development clients that do not register the generated `exp+<slug>` scheme (for example, bare projects or clients built with `addGeneratedScheme: false`), set `app-scheme` to the exact scheme registered by that client. This value is independent of the config evaluated on the runner, so it can target a development variant even when `eas update --environment ...` uses different environment variables.
And the action will generate these [outputs](#available-outputs) for other actions to do something based on what this action did.
### Available outputs
In case you want to reuse this action for other purpose, this action will set the following action outputs.
| output name | description |
| ----------------------- | ------------------------------------------------ |
| **ios-fingerprint** | The iOS fingerprint of the current commit. |
| **android-fingerprint** | The Android fingerprint of the current commit. |
| **android-build-id** | ID for Android EAS Build if one was started. |
| **ios-build-id** | ID for iOS EAS Build if one was started. |
| **update-output** | The output (JSON) from the `eas update` command. |
## Caveats
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
This action tries to auto-authenticate using the [Automatic token authentication][link-gha-token] from GitHub.
You can overwrite the token by adding the `GITHUB_TOKEN` environment variable or add the **github-token** input.
## Example workflows
Before diving into the workflow examples, you should know the basics of GitHub Actions.
You can read more about this in the [GitHub Actions documentation][link-actions].
Below are two examples of how to uses these actions to achieve CI/CD in development and production. While production continuous deployment of apps is possible as demonstrated below, it is far more complex due to the added complication of app store submission. Therefore, continuous CI/CD is only recommended on development branches (PRs).
### Continuous integration and development (CI/CD) on pull requests (recommended)
This example workflow continuously deploys PR branches to the development EAS Build profile and EAS Update branch. It will do a development build if necessary and display a QR code to scan to preview the latest commit on the PR. This is most effective when combined with [`expo-dev-client`](https://docs.expo.dev/versions/latest/sdk/dev-client/) as the QR code is designed for that.
```yml
name: Continuous Development (PRs)
on:
pull_request:
types: [opened, synchronize]
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 📦 Install dependencies
run: yarn install
- name: 🧪 Run tests
run: yarn test
continuously-deploy:
needs: test
runs-on: ubuntu-latest
concurrency: continuous-deploy-fingerprint-${{ github.run_id }}
permissions:
contents: read # Allow checkout
pull-requests: write # Allow comments on PRs
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: 📦 Install dependencies
run: yarn install
- name: 🏗 Setup EAS
uses: expo/expo-github-action@main
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
- name: Continuously Deploy
uses: expo/expo-github-action/continuous-deploy-fingerprint@main
with:
profile: development
branch: development
```
### Continuous deployment on main (advanced)
This example workflow continuously deploys the main branch to the production EAS Build profile and EAS Update branch. It also does automatic version bumping and auto-submission using EAS Submit when applicable. Note that this still will require human intervention on the app store side in order to promote the submitted build to production.
> [!CAUTION]
> Caveats:
> - When configured, this will do a submission to the app store every time the fingerprint changes. While it is possible to configure submission just to test flight, this likely will still cause too many submissions if your fingerprint changes often. In this case, continuous main deployment is not recommended; instead, a more traditional branch cut release process should be used.
> - This demonstrates a simplified example of what is likely needed to do automatic version bumping (prerequisite for continuous deployment on main).
```yml
name: Continuous Deployment (main)
on:
push:
branches:
- main
env:
EXPO_TOKEN: ${{ secrets.EXPO_TOKEN }}
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
cache: yarn
- name: 📦 Install dependencies
run: yarn install
- name: 🧪 Run tests
run: yarn test
continuously-deploy:
needs: test
runs-on: ubuntu-latest
concurrency: continuous-deploy-fingerprint-main
permissions:
contents: write # Allow checkout and automated version bump write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v4
- name: 🏗 Setup Node
uses: actions/setup-node@v3
with:
node-version: 18.x
- name: 📦 Install dependencies
run: yarn install
- name: 🏗 Setup EAS
uses: expo/expo-github-action@main
with:
eas-version: latest
token: ${{ secrets.EXPO_TOKEN }}
# Get current fingerprint info and builds to check if we need to do a version bump
- name: Get fingerprint info
id: info
uses: expo/expo-github-action/continuous-deploy-fingerprint-info@main
with:
profile: production
# If we do need to do a version bump, calculate the version to bump to. Note that this will vary greatly depending on your versioning preferences.
- name: Get current version and calculate next version
id: getversion
if: ${{ github.event.head_commit.message != 'Automated version bump commit' && (steps.info.outputs.android-build-id == '' || steps.info.outputs.ios-build-id == '') }}
run: |
echo "currentversion=$(node -p "require('./app.json').expo.version")" >> $GITHUB_OUTPUT
echo "nextversion=$(node -p "parseInt(require('./app.json').expo.version, 10) + 1 + '.0.0'")" >> $GITHUB_OUTPUT
# Bump the version. Note that this will vary greatly depending on your CNG and versioning preferences.
- name: Bump Version
id: bumpversion
if: ${{ github.event.head_commit.message != 'Automated version bump commit' && (steps.info.outputs.android-build-id == '' || steps.info.outputs.ios-build-id == '') }}
uses: restackio/[email protected]
with:
file: app.json
fields: "{\"expo.version\": \"${{ steps.getversion.outputs.nextversion }}\"}"
# Commit and push the version bump to main.
- name: Commit version bump
id: commitversionbump
if: ${{ github.event.head_commit.message != 'Automated version bump commit' && (steps.info.outputs.android-build-id == '' || steps.info.outputs.ios-build-id == '') }}
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Automated version bump commit"
# Always continuously deploy. When no version bump is done (already have production builds for the fingerprint), this will solely deploy OTA updates.
# When a version bump is done, this will kick off new production builds and auto-submit them to the app stores if configured.
# Important note: the above version bump commit doesn't trigger a new workflow run due to
# https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow
# so it is safe to always continuously deploy here, it'll use the post-commit fingerprint. If instead it did kick off a new workflow run, we'd skip
# this step here.
- name: Continuously Deploy
uses: expo/expo-github-action/continuous-deploy-fingerprint@main
with:
profile: production
branch: production
# auto-submit-builds: true
```
<div align="center">
<br />
with :heart:&nbsp;<strong>Expo</strong>
<br />
</div>
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-gha-token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
+54
View File
@@ -0,0 +1,54 @@
---
name: Expo GitHub Action - Continuous Deploy Fingerprint
author: Expo
description: Continuously deploy an Expo project using EAS Build and EAS Update with fingerprint.
branding:
icon: smartphone
color: gray-dark
runs:
using: node24
main: ../build/continuous-deploy-fingerprint/index.js
inputs:
profile:
description: The EAS Build profile to use, must have EAS Update channel specified in eas.json
required: true
branch:
description: The EAS Update branch on which to publish.
required: true
environment:
description: The environment to use for server-side defined EAS environment variables during command execution
required: false
app-scheme:
description: Override the app scheme shown in the comment and used for development-build QR codes. Defaults to the generated exp+<slug> scheme for QR codes. Does not affect Expo Go QR codes.
required: false
platform:
description: The platform on which to publish. Possible values are 'all' | 'android' | 'ios'
required: false
default: all
auto-submit-builds:
description: Automatically submit new builds to their respective app stores using EAS Build `--auto-submit` flag (EAS Submit).
required: false
github-token:
description: GitHub token to use when commenting on PR
required: false
default: ${{ github.token }}
working-directory:
description: The relative directory of your Expo app
required: false
default: ${{ github.workspace }}
outputs:
android-fingerprint:
description: The Android fingerprint of the current commit.
ios-fingerprint:
description: The iOS fingerprint of the current commit.
android-build-id:
description: ID for Android EAS Build with matching fingerprint.
android-did-start-new-build:
description: Whether this run of the action started a new Android EAS Build.
ios-build-id:
description: ID for iOS EAS Build with matching fingerprint.
ios-did-start-new-build:
description: Whether this run of the action started a new iOS EAS Build.
update-output:
description: The output (JSON) from the `eas update` command
+23 -14
View File
@@ -61,7 +61,7 @@ jobs:
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
# REQUIRED: Allow updating fingerprint in action caches
actions: write
steps:
@@ -74,14 +74,17 @@ jobs:
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| ---------------------------------- | ---------------- | ----------------------------------------------------------------------- |
| **working-directory** | - | The relative directory of your Expo app |
| **packager** | `yarn` | The package manager used to install the fingerprint tools |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| **fingerprint-version** | `latest` | `@expo/fingerprint` version to install |
| **fingerprint-installation-cache** | `true` | If the `@expo/fingerprint` should be cached to speed up installation |
| **fingerprint-db-cache-key** | `fingerprint-db` | A cache key to use for saving the fingerprint database |
| variable | default | description |
| ---------------------------------- | ---------------- | ------------------------------------------------------------------------------------------- |
| **working-directory** | - | The relative directory of your Expo app |
| **packager** | `yarn` | The package manager used to install the fingerprint tools |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| **fingerprint-version** | `latest` | `@expo/fingerprint` version to install |
| **fingerprint-installation-cache** | `true` | If the `@expo/fingerprint` should be cached to speed up installation |
| **fingerprint-db-cache-key** | `fingerprint-db` | A cache key to use for saving the fingerprint database |
| **previous-git-commit** | - | The Git hash for the base commit |
| **current-git-commit** | - | The Git hash for the current commit |
| **saving-db-branch** | - | The branch for saving the fingerprint database. Defaults to the repository's default branch |
And the action will generate these [outputs](#available-outputs) for other actions to do something based on current project fingerprint
@@ -89,9 +92,13 @@ And the action will generate these [outputs](#available-outputs) for other actio
In case you want to reuse this action for other purpose, this action will set the following action outputs.
| output name | description |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **fingerprint-diff** | The diff between the current and the previous fingerprint. It is a JSON array of fingerprint diff. If the fingerprint does not change in between, the result diff will be an empty array `[]` |
| output name | description |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **previous-fingerprint** | The fingerprint of the base commit if it has been computed previously. May be null if it has not been computed previously. |
| **current-fingerprint** | The fingerprint of the current commit. |
| **previous-git-commit** | The Git hash for the base commit. |
| **current-git-commit** | The Git hash for the current commit. |
| **fingerprint-diff** | The diff between the current and the previous fingerprint. It is a JSON array of fingerprint diff. If the fingerprint does not change in between, the result diff will be an empty array `[]` |
## Example workflows
@@ -115,8 +122,10 @@ jobs:
permissions:
# REQUIRED: Allow comments of PRs
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
# REQUIRED: Allow updating fingerprint in action caches
actions: write
# OPTIONAL: Allow reading of repo contents for private projects
# contents: read
steps:
- name: 🏗 Setup repo
@@ -133,7 +142,7 @@ jobs:
- name: Check fingerprint
id: fingerprint
uses: expo/expo-github-action/preview-build@main
uses: expo/expo-github-action/fingerprint@main
- uses: actions/github-script@v6
if: ${{ github.event_name == 'pull_request' && steps.fingerprint.outputs.fingerprint-diff == '[]' }}
+18 -1
View File
@@ -6,7 +6,7 @@ branding:
icon: smartphone
color: gray-dark
runs:
using: node20
using: node24
main: ../build/fingerprint/index.js
post: ../build/fingerprint-post/index.js
post-if: success()
@@ -33,7 +33,24 @@ inputs:
description: A cache key to use for saving the fingerprint database
required: false
default: fingerprint-db
previous-git-commit:
description: The Git hash for the base commit
required: false
current-git-commit:
description: The Git hash for the current commit
required: false
saving-db-branch:
description: The branch for saving the fingerprint database. Defaults to the repository's default branch
required: false
outputs:
previous-fingerprint:
description: The fingerprint of the previous commit. May be null if it has never previously been computed
current-fingerprint:
description: The fingerprint of the current commit
previous-git-commit:
description: The Git hash for the base commit
current-git-commit:
description: The Git hash for the current commit
fingerprint-diff:
description: The diff between the current and the previous fingerprint
+2 -1
View File
@@ -1,8 +1,9 @@
/** @type {import('@jest/types').Config.InitialOptions} */
/** @type {import('jest').Config} */
module.exports = {
verbose: true,
clearMocks: true,
moduleFileExtensions: ['js', 'ts'],
prettierPath: require.resolve('jest-snapshot-prettier'),
testEnvironment: 'node',
testMatch: ['**/*.test.ts'],
transform: {
+4 -1
View File
@@ -27,7 +27,10 @@ async function prebuild() {
await fs.promises.rm(buildDir, { force: true, recursive: true });
await fs.promises.rm(modulesDir, { force: true, recursive: true });
await spawn('bun', ['install', '--frozen-lockfile'], { stdio: 'inherit', env: { ...process.env, CI: true } });
await spawn('bun', ['install', '--frozen-lockfile'], {
stdio: 'inherit',
env: { ...process.env, CI: true },
});
console.log();
}
+24 -32
View File
@@ -1,7 +1,7 @@
{
"private": true,
"name": "expo-github-action",
"version": "8.1.0",
"version": "9.0.2",
"description": "Expo CLI in your GitHub Actions workflow",
"main": "build/index.js",
"repository": {
@@ -21,50 +21,42 @@
"clean": "git clean -xdf ./build"
},
"dependencies": {
"@actions/cache": "^3.1.2",
"@actions/core": "^1.10.0",
"@actions/cache": "^4.0.2",
"@actions/core": "^1.11.1",
"@actions/exec": "^1.1.1",
"@actions/github": "^5.1.1",
"@actions/github": "^6.0.0",
"@actions/io": "^1.1.2",
"@actions/tool-cache": "^2.0.1",
"semver": "^7.3.8",
"uuid": "^8.3.2"
"@actions/tool-cache": "^2.0.2",
"semver": "^7.7.1",
"uuid": "^11.0.5"
},
"devDependencies": {
"@expo/config": "^8.1.2",
"@expo/fingerprint": "^0.1.0",
"@expo/config": "^10.0.9",
"@expo/fingerprint": "^0.11.9",
"@expo/spawn-async": "^1.7.2",
"@semantic-release/changelog": "^6.0.2",
"@semantic-release/exec": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"@tsconfig/node20": "^20.1.2",
"@types/jest": "^29.2.5",
"@types/node": "^16.18.11",
"@types/uuid": "^9.0.3",
"@vercel/ncc": "^0.36.0",
"conventional-changelog-conventionalcommits": "^5.0.0",
"eslint": "^8.54.0",
"eslint-config-universe": "^12.0.0",
"@tsconfig/node24": "^24.0.4",
"@types/jest": "^29.5.14",
"@types/node": "^24.12.3",
"@types/semver": "^7.5.8",
"@types/uuid": "^10.0.0",
"@vercel/ncc": "^0.38.3",
"conventional-changelog-conventionalcommits": "^8.0.0",
"eslint": "^8.57.1",
"eslint-config-universe": "^15.2.0",
"getenv": "^1.0.0",
"jest": "^29.3.1",
"prettier": "^3.1.0",
"semantic-release": "^19.0.5",
"jest-snapshot-prettier": "npm:prettier@^2.8.8",
"prettier": "^3.5.1",
"semantic-release": "^24.2.2",
"sqlite3": "^5.1.6",
"ts-jest": "^29.0.3",
"typescript": "^5.3.2"
"ts-jest": "^29.2.5",
"typescript": "^5.9.3"
},
"trustedDependencies": [
"sqlite3"
],
"eslintConfig": {
"extends": "universe/node",
"ignorePatterns": [
"build/**",
"node_modules/**"
]
},
"prettier": {
"printWidth": 120,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"bracketSameLine": true,
+7 -1
View File
@@ -63,6 +63,9 @@ jobs:
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
actions: write
# Following permissions are required for private repos
contents: read
packages: write
steps:
- name: Setup EAS
@@ -136,9 +139,12 @@ jobs:
pull-requests: write # Allow comments on PRs
# REQUIRED: Allow updating fingerprint in acton caches
actions: write
# Following permissions are required for private repos
contents: read
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: 🏗 Setup EAS
uses: expo/expo-github-action@v8
+10 -1
View File
@@ -6,7 +6,7 @@ branding:
icon: smartphone
color: gray-dark
runs:
using: node20
using: node24
main: ../build/preview-build/index.js
inputs:
command:
@@ -42,6 +42,15 @@ inputs:
default: fingerprint-db
eas-build-message:
description: A short message describing the build
previous-git-commit:
description: The Git hash for the base commit
required: false
current-git-commit:
description: The Git hash for the current commit
required: false
saving-db-branch:
description: The branch for saving the fingerprint database. Defaults to the repository's default branch
required: false
outputs:
projectId:
+1 -1
View File
@@ -6,7 +6,7 @@ branding:
icon: message-circle
color: gray-dark
runs:
using: node20
using: node24
main: ../build/preview-comment/index.js
inputs:
project:
+41 -18
View File
@@ -42,28 +42,32 @@ It can help speed up the review process by letting the reviewer load the app dir
This action is customizable through variables defined in the [`action.yml`](action.yml).
Here is a summary of all the input options you can use.
| variable | default | description |
| --------------------- | --------------------------- | ---------------------------------------------------------------------------------------------- |
| **command** | - | EAS CLI command to run when creating updates |
| **working-directory** | - | The relative directory of your Expo app |
| **app-scheme** | - | The (custom) app scheme to use when creating the preview QR code |
| **comment** | `true` | If the action should summarize the EAS Update information as comment on a pull request |
| **comment-id** | _[see code][code-defaults]_ | unique id template to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
| variable | default | description |
| --------------------- | --------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **command** | - | EAS CLI command to run when creating updates |
| **working-directory** | - | The relative directory of your Expo app |
| **comment** | `true` | If the action should summarize the EAS Update information as comment on a pull request |
| **comment-id** | _[see code][code-defaults]_ | Unique id template to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **qr-target** | _inferred from project_ | Either `dev-build` or `expo-go`, affects how the EAS Update is opened through the QR code. <br /> Defaults to `dev-build` when `expo-dev-client` is detected within the project. |
| **app-scheme** | - | Override the native scheme shown in the comment and used for development-build QR codes. Omit it to use `exp+<slug>` for QR codes. Does not affect Expo Go QR codes. |
| **github-token** | `github.token` | GitHub token to use when commenting on PR ([read more](#github-tokens)) |
For development clients that do not register the generated `exp+<slug>` scheme (for example, bare projects or clients built with `addGeneratedScheme: false`), set `app-scheme` to the exact scheme registered by that client. This value is independent of the config evaluated on the runner, so it can target a development variant even when `eas update --environment ...` uses different environment variables.
## Available outputs
There are a few variables available that you can use to set up your own notifications.
These variables are strings; some may be empty because of your project configuration.
| output name | description |
| ----------------- | ------------------------------------------------------------------------------------------------- |
| **projectId** | The resolved EAS project ID |
| **projectName** | The name of your project ([read more](https://docs.expo.dev/versions/latest/config/app/#name)) |
| **projectSlug** | The slug of your project ([read more](https://docs.expo.dev/versions/latest/config/app/#slug)) |
| **projectScheme** | The (custom) app scheme ([read more](https://docs.expo.dev/versions/latest/config/app/#scheme)) |
| **commentId** | The unique comment ID to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **comment** | The comment with information about the updates |
| output name | description |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| **projectId** | The resolved EAS project ID |
| **projectName** | The name of your project ([read more](https://docs.expo.dev/versions/latest/config/app/#name)) |
| **projectSlug** | The slug of your project ([read more](https://docs.expo.dev/versions/latest/config/app/#slug)) |
| **projectScheme** | The `app-scheme` override, or longest configured app scheme ([read more](https://docs.expo.dev/versions/latest/config/app/#scheme)) |
| **projectSchemes** | The `app-scheme` override, or configured app schemes in order of longest to shortest, as a JSON string ([read more](https://docs.expo.dev/versions/latest/config/app/#scheme)) |
| **commentId** | The unique comment ID to prevent duplicate comments ([read more](#preventing-duplicate-comments)) |
| **comment** | The comment with information about the updates |
### Update information
@@ -123,7 +127,13 @@ You can read more about this in the [GitHub Actions documentation][link-actions]
### Create previews on pull requests
This workflow creates a new EAS Update every time a pull request is created or updated.
Since we're using the `--auto` flag, the EAS branch will be named after the GitHub branch, and the message for the update will match the commit's message.
We are using the `--auto`, together with the `--branch`, flag in this example.
- `--auto` will automatically create an update using the current git commit message and git branch.
- `--branch` will overwrite this value inferred from git with our own value.
> **Warning**
> GitHub Actions might use a temporary merge branch for PRs. To avoid using this merge branch for our update, we overwrite the branch name from `--auto` with our own `--branch` value.
```yml
on:
@@ -156,7 +166,9 @@ jobs:
- name: 🚀 Create preview
uses: expo/expo-github-action/preview@v8
with:
command: eas update --auto
# `github.event.pull_request.head.ref` is only available on `pull_request` triggers.
# Use your own, or keep the automatically infered branch name from `--auto`, when using different triggers.
command: eas update --auto --branch ${{ github.event.pull_request.head.ref }}
```
### Sending preview information elsewhere
@@ -197,6 +209,8 @@ jobs:
uses: expo/expo-github-action/preview@v8
id: preview
with:
# In this example, we use the `push` trigger which will always use the branch name that was pushed to.
# By using `--auto` we both use the git commit message and branch name for the update.
command: eas update --auto
comment: false
@@ -216,6 +230,13 @@ jobs:
When automating these preview comments, you have to be careful not to spam a pull request on every successful run.
Every comment contains a generated **message-id** to identify previously made comments and update them instead of creating a new comment.
### Update branch and workflow triggers
GitHub Actions uses slightly different checkout logic for different workflow triggers.
When using the `push` trigger, GitHub Actions checks out the branch that was pushed to.
But for [`pull_request` triggers][link-gha-trigger-pull], GitHub Actions might use a temporary branch name.
This affects in what "branch" your EAS Update is created when using the `--auto` flag.
### GitHub tokens
When using the GitHub API, you always need to be authenticated.
@@ -231,3 +252,5 @@ You can overwrite the token by adding the `GITHUB_TOKEN` environment variable or
[code-defaults]: ../src/actions/preview.ts#L10
[link-actions]: https://help.github.com/en/categories/automating-your-workflow-with-github-actions
[link-gha-token]: https://docs.github.com/en/actions/security-guides/automatic-token-authentication#permissions-for-the-github_token
[link-gha-trigger-pull]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request
[link-gha-trigger-push]: https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#push
+8 -5
View File
@@ -6,21 +6,21 @@ branding:
icon: smartphone
color: gray-dark
runs:
using: node20
using: node24
main: ../build/preview/index.js
inputs:
command:
description: EAS CLI command to run when creating updates
required: true
app-scheme:
description: The (custom) app scheme to use when creating the preview QR code
required: false
comment:
description: If the action should summarize the EAS Update information as comment on a pull request
required: false
default: true
comment-id:
description: unique id template to prevent duplicate comments
qr-target:
description: How the EAS Update is opened through the QR code, either `dev-build` or `expo-go`. Defaults to `dev-build` if `expo-dev-client` is used in project.
required: false
working-directory:
description: The relative directory of your Expo app
required: false
@@ -29,6 +29,9 @@ inputs:
description: GitHub token to use when commenting on PR
required: false
default: ${{ github.token }}
app-scheme:
description: Override the app scheme shown in the comment and used for development-build QR codes. Defaults to the generated exp+<slug> scheme for QR codes. Does not affect Expo Go QR codes.
required: false
outputs:
projectId:
description: The resolved EAS project ID
@@ -37,7 +40,7 @@ outputs:
projectSlug:
description: The slug of your project
projectScheme:
description: The (custom) app scheme
description: The app-scheme override, or the longest configured app scheme
commentId:
description: The unique comment ID to prevent duplicate comments
@@ -0,0 +1,26 @@
import { collectContinuousDeployFingerprintInput } from '../../actions/continuous-deploy-fingerprint';
jest.mock('../../worker');
describe(collectContinuousDeployFingerprintInput, () => {
it.each([
{ value: '', expected: undefined },
{ value: 'myapp-dev', expected: 'myapp-dev' },
])('reads the native scheme override "$value"', ({ value, expected }) => {
const previous = process.env;
process.env = {
...previous,
INPUT_PROFILE: 'development',
INPUT_BRANCH: 'preview-test',
INPUT_PLATFORM: 'all',
'INPUT_GITHUB-TOKEN': 'test-token',
'INPUT_WORKING-DIRECTORY': '.',
'INPUT_APP-SCHEME': value,
};
try {
expect(collectContinuousDeployFingerprintInput().appScheme).toBe(expected);
} finally {
process.env = previous;
}
});
});
@@ -1,14 +1,19 @@
import * as core from '@actions/core';
import { commentInput, commentAction, DEFAULT_ID, DEFAULT_MESSAGE } from '../../src/actions/preview-comment';
import * as expo from '../../src/expo';
import * as github from '../../src/github';
import {
DEFAULT_ID,
DEFAULT_MESSAGE,
commentAction,
commentInput,
} from '../../actions/preview-comment';
import * as expo from '../../expo';
import * as github from '../../github';
import { mockInput } from '../utils';
jest.mock('@actions/core');
jest.mock('../../src/expo');
jest.mock('../../src/github');
jest.mock('../../src/worker');
jest.mock('../../expo');
jest.mock('../../github');
jest.mock('../../worker');
describe(commentInput, () => {
it('returns object with correct defaults', () => {
@@ -76,7 +81,9 @@ describe(commentAction, () => {
});
it('resolves project owner info by manifest owner', async () => {
jest.mocked(expo.projectInfo).mockResolvedValue({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' });
jest
.mocked(expo.projectInfo)
.mockResolvedValue({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' });
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectOwner', 'fakeowner');
expect(expo.projectOwner).not.toBeCalled();
@@ -122,9 +129,14 @@ describe(commentAction, () => {
});
it('sets projectQR', async () => {
jest.mocked(expo.projectQR).mockReturnValue('https://qr.expo.dev/expo-go?owner=fakeuser&slug=fakeslug');
jest
.mocked(expo.projectQR)
.mockReturnValue('https://qr.expo.dev/expo-go?owner=fakeuser&slug=fakeslug');
await commentAction({ ...input });
expect(core.setOutput).toBeCalledWith('projectQR', 'https://qr.expo.dev/expo-go?owner=fakeuser&slug=fakeslug');
expect(core.setOutput).toBeCalledWith(
'projectQR',
'https://qr.expo.dev/expo-go?owner=fakeuser&slug=fakeslug'
);
});
it('sets message', async () => {
@@ -1,16 +1,28 @@
import { ExpoConfig } from '@expo/config';
import { createSummary, getSchemeFromConfig, getVariables, previewInput } from '../../src/actions/preview';
import { EasUpdate } from '../../src/eas';
import { createSummary, getVariables, previewInput } from '../../actions/preview';
import { EasUpdate } from '../../eas';
const fakeInput = {} as unknown as ReturnType<typeof previewInput>;
jest.mock('../../expo');
jest.mock('../../worker');
const fakeExpoConfig = {
const fakeOptions: ReturnType<typeof previewInput> = {
command: 'eas update',
appScheme: undefined,
shouldComment: true,
commentId: 'preview-test',
workingDirectory: '.',
githubToken: 'test-token',
qrTarget: 'dev-client',
};
const fakeExpoConfig: ExpoConfig = {
name: 'Fake project',
slug: 'fake-project',
extra: {
eas: { projectId: 'fake-project-id' },
},
} as unknown as ExpoConfig;
};
const fakeUpdatesSingle: EasUpdate[] = [
{
@@ -37,27 +49,72 @@ const fakeUpdatesSingle: EasUpdate[] = [
},
];
const fakeUpdatesMultiple = fakeUpdatesSingle.map(update => ({ ...update, group: `fake-group-${update.id}` }));
const fakeUpdatesMultiple = fakeUpdatesSingle.map(update => ({
...update,
group: `fake-group-${update.id}`,
}));
describe(getSchemeFromConfig, () => {
it('returns `null` when not defined', () => {
expect(getSchemeFromConfig({} as ExpoConfig)).toBeNull();
describe(previewInput, () => {
it('reads the native scheme override from the action input', () => {
const previous = process.env['INPUT_APP-SCHEME'];
process.env['INPUT_APP-SCHEME'] = 'myapp-dev';
try {
expect(previewInput().appScheme).toBe('myapp-dev');
} finally {
if (previous === undefined) {
delete process.env['INPUT_APP-SCHEME'];
} else {
process.env['INPUT_APP-SCHEME'] = previous;
}
}
});
});
describe(getVariables, () => {
it('keeps the generated scheme when config contains a variant-specific scheme', () => {
const vars = getVariables(
{ ...fakeExpoConfig, scheme: 'myapp-production' },
fakeUpdatesMultiple,
fakeOptions
);
for (const value of [vars.qr, vars.androidQR, vars.iosQR]) {
const qr = new URL(value);
expect(qr.origin + qr.pathname).toBe('https://qr.expo.dev/eas-update');
expect(qr.searchParams.get('appScheme')).toBe('fake-project');
}
});
it('returns scheme when defined as string', () => {
expect(getSchemeFromConfig({ scheme: 'ega' } as ExpoConfig)).toBe('ega');
});
it('returns longest scheme when defined as array', () => {
expect(getSchemeFromConfig({ scheme: ['ega', 'expogithubaction'] } as ExpoConfig)).toBe('expogithubaction');
it('uses an explicit native scheme for every update group and the comment', () => {
const options = { ...fakeOptions, appScheme: 'myapp-dev' };
const vars = getVariables(
{ ...fakeExpoConfig, scheme: ['myapp-production', 'com.example.third-party-long'] },
fakeUpdatesMultiple,
options
);
expect(vars.projectScheme).toBe('myapp-dev');
expect(JSON.parse(vars.projectSchemes)).toEqual(['myapp-dev']);
for (const [value, group] of [
[vars.qr, 'fake-group-fake-android-id'],
[vars.androidQR, 'fake-group-fake-android-id'],
[vars.iosQR, 'fake-group-fake-ios-id'],
]) {
const qr = new URL(value);
expect(qr.origin + qr.pathname).toBe('https://qr.expo.dev/development-client');
expect(qr.searchParams.get('appScheme')).toBe('myapp-dev');
expect(qr.searchParams.get('url')).toBe(`https://u.expo.dev/fake-project-id/group/${group}`);
}
});
});
describe(createSummary, () => {
describe('single update group', () => {
it('returns expected message for both platforms', () => {
expect(createSummary(fakeUpdatesSingle, getVariables(fakeExpoConfig, fakeUpdatesSingle, fakeInput)))
.toMatchInlineSnapshot(`
expect(
createSummary(
fakeUpdatesSingle,
getVariables(fakeExpoConfig, fakeUpdatesSingle, fakeOptions)
)
).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
@@ -65,7 +122,7 @@ describe(createSummary, () => {
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
@@ -73,35 +130,21 @@ describe(createSummary, () => {
it('returns expected message for both platforms with custom app scheme', () => {
const customSchemeConfig = { ...fakeExpoConfig, scheme: ['ega', 'expogithubaction'] };
expect(createSummary(fakeUpdatesSingle, getVariables(customSchemeConfig, fakeUpdatesSingle, fakeInput)))
.toMatchInlineSnapshot(`
expect(
createSummary(
fakeUpdatesSingle,
getVariables(customSchemeConfig, fakeUpdatesSingle, fakeOptions)
)
).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
- Scheme → **expogithubaction**
- Scheme → **expogithubaction**, **ega**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=expogithubaction&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=expogithubaction&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for both platforms with overwriten app scheme', () => {
const customInput = { ...fakeInput, appScheme: 'expogithubaction' };
expect(createSummary(fakeUpdatesSingle, getVariables(fakeExpoConfig, fakeUpdatesSingle, customInput)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
- Scheme → **expogithubaction**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=expogithubaction&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=expogithubaction&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
@@ -109,7 +152,8 @@ describe(createSummary, () => {
it('returns expected message for android only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'android');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeInput))).toMatchInlineSnapshot(`
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
@@ -117,7 +161,7 @@ describe(createSummary, () => {
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
@@ -125,7 +169,8 @@ describe(createSummary, () => {
it('returns expected message for ios only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'ios');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeInput))).toMatchInlineSnapshot(`
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
@@ -133,7 +178,7 @@ describe(createSummary, () => {
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
@@ -142,10 +187,69 @@ describe(createSummary, () => {
describe('mutliple update groups', () => {
it('returns expected message for both platforms', () => {
expect(createSummary(fakeUpdatesMultiple, getVariables(fakeExpoConfig, fakeUpdatesMultiple, fakeInput)))
expect(
createSummary(
fakeUpdatesMultiple,
getVariables(fakeExpoConfig, fakeUpdatesMultiple, fakeOptions)
)
).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
Android <br /> _(exposdk:47.0.0)_ <br /> **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-fake-android-id)** | iOS <br /> _(exposdk:47.0.0)_ <br /> **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-fake-ios-id)**
--- | ---
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-android-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-android-id" width="250px" height="250px" /></a> | <a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-ios-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-fake-ios-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for android only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'android');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **android**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for ios only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'ios');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeOptions)))
.toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **ios**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?appScheme=fake-project&projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns Expo Go compatible QR code when forced', () => {
const customOptions: typeof fakeOptions = { ...fakeOptions, qrTarget: 'expo-go' };
expect(
createSummary(
fakeUpdatesMultiple,
getVariables(fakeExpoConfig, fakeUpdatesMultiple, customOptions)
)
).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platforms → **android**, **ios**
@@ -156,37 +260,5 @@ describe(createSummary, () => {
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for android only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'android');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeInput))).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **android**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
it('returns expected message for ios only', () => {
const fakeUpdate = fakeUpdatesSingle.filter(update => update.platform === 'ios');
expect(createSummary(fakeUpdate, getVariables(fakeExpoConfig, fakeUpdate, fakeInput))).toMatchInlineSnapshot(`
"🚀 Expo preview is ready!
- Project → **fake-project**
- Platform → **ios**
- Runtime Version → **exposdk:47.0.0**
- **[More info](https://expo.dev/projects/fake-project-id/updates/fake-group-id)**
<a href="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id"><img src="https://qr.expo.dev/eas-update?projectId=fake-project-id&groupId=fake-group-id" width="250px" height="250px" /></a>
> Learn more about [𝝠 Expo Github Action](https://github.com/expo/expo-github-action/tree/main/preview#example-workflows)"
`);
});
});
});
@@ -1,17 +1,17 @@
import * as core from '@actions/core';
import { setupInput, setupAction } from '../../src/actions/setup';
import * as cacher from '../../src/cacher';
import * as expo from '../../src/expo';
import * as packager from '../../src/packager';
import * as worker from '../../src/worker';
import { setupAction, setupInput } from '../../actions/setup';
import * as cacher from '../../cacher';
import * as expo from '../../expo';
import * as packager from '../../packager';
import * as worker from '../../worker';
import { mockInput } from '../utils';
jest.mock('@actions/core');
jest.mock('../../src/cacher');
jest.mock('../../src/expo');
jest.mock('../../src/packager');
jest.mock('../../src/worker');
jest.mock('../../cacher');
jest.mock('../../expo');
jest.mock('../../packager');
jest.mock('../../worker');
describe(setupInput, () => {
it('returns object with correct defaults', () => {
@@ -89,7 +89,12 @@ describe(setupAction, () => {
});
it('authenticates token with eas-cli by default', async () => {
await setupAction({ ...input, expoVersion: 'latest', easVersion: 'latest', token: 'faketoken' });
await setupAction({
...input,
expoVersion: 'latest',
easVersion: 'latest',
token: 'faketoken',
});
expect(expo.authenticate).toBeCalledWith('faketoken', 'eas');
});
@@ -2,8 +2,8 @@ import * as cache from '@actions/cache';
import os from 'os';
import { resetEnv, setEnv } from './utils';
import { cacheKey, restoreFromCache, saveToCache } from '../src/cacher';
import { toolPath } from '../src/worker';
import { cacheKey, restoreFromCache, saveToCache } from '../cacher';
import { toolPath } from '../worker';
jest.mock('@actions/cache');
jest.mock('@actions/core');
@@ -40,13 +40,17 @@ describe(restoreFromCache, () => {
it('throws when cache has unexpected error', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.restoreCache).mockRejectedValue(new Error('Node registry is down'));
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).rejects.toThrow('Node registry is down');
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).rejects.toThrow(
'Node registry is down'
);
});
it('returns expo-cli path from cache when available', async () => {
jest.mocked(cache.isFeatureAvailable).mockReturnValue(true);
jest.mocked(cache.restoreCache).mockResolvedValue('fake/path');
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).resolves.toBe(toolPath('expo-cli', '5.0.3'));
await expect(restoreFromCache('expo-cli', '5.0.3', 'yarn')).resolves.toBe(
toolPath('expo-cli', '5.0.3')
);
});
it('returns nothing when cache is empty', async () => {
+56
View File
@@ -0,0 +1,56 @@
import { ExpoConfig } from '@expo/config';
import { getQrTarget, getSchemesInOrderFromConfig } from '../comment';
import { projectAppType } from '../expo';
jest.mock('../expo');
const fakeOptions = {
workingDirectory: '',
};
describe(getQrTarget, () => {
it('returns `dev-build` for `qr-target: dev-build`', () => {
expect(getQrTarget({ ...fakeOptions, qrTarget: 'dev-build' })).toBe('dev-build');
});
it('returns `dev-build` for `qr-target: dev-client`', () => {
expect(getQrTarget({ ...fakeOptions, qrTarget: 'dev-client' })).toBe('dev-build');
});
it('returns `expo-go` for `qr-target: expo-go`', () => {
expect(getQrTarget({ ...fakeOptions, qrTarget: 'expo-go' })).toBe('expo-go');
});
it('throws for unknown `qr-target`', () => {
expect(() => getQrTarget({ ...fakeOptions, qrTarget: 'unknown' } as any)).toThrow(
`Invalid QR code target: "unknown", expected "expo-go" or "dev-build"`
);
});
it('returns infered `dev-build` when input is omitted', () => {
jest.mocked(projectAppType).mockReturnValue('dev-build');
expect(getQrTarget({ ...fakeOptions, qrTarget: undefined })).toBe('dev-build');
});
it('returns infered `expo-go` when input is omitted', () => {
jest.mocked(projectAppType).mockReturnValue('expo-go');
expect(getQrTarget({ ...fakeOptions, qrTarget: undefined })).toBe('expo-go');
});
});
describe(getSchemesInOrderFromConfig, () => {
it('returns empty array when not defined', () => {
expect(getSchemesInOrderFromConfig({} as ExpoConfig)).toEqual([]);
});
it('returns scheme as array when defined as string', () => {
expect(getSchemesInOrderFromConfig({ scheme: 'ega' } as ExpoConfig)).toEqual(['ega']);
});
it('returns schemes in order when defined as array', () => {
expect(
getSchemesInOrderFromConfig({ scheme: ['ega', 'expogithubaction'] } as ExpoConfig)
).toEqual(['expogithubaction', 'ega']);
});
});
+71
View File
@@ -0,0 +1,71 @@
import { getUpdateGroupQr } from '../eas';
describe(getUpdateGroupQr, () => {
it.each([
{ staging: '', host: 'u.expo.dev' },
{ staging: '1', host: 'staging-u.expo.dev' },
])('uses the native scheme and $host for development builds', ({ staging, host }) => {
const previous = process.env.EXPO_STAGING;
process.env.EXPO_STAGING = staging;
try {
const qr = new URL(
getUpdateGroupQr({
qrTarget: 'dev-build',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'appslug',
appScheme: 'com.example.app-dev',
})
);
expect(qr.origin + qr.pathname).toBe('https://qr.expo.dev/development-client');
expect(qr.searchParams.get('appScheme')).toBe('com.example.app-dev');
expect(qr.searchParams.get('url')).toBe(`https://${host}/projectId/group/updateGroupId`);
} finally {
if (previous === undefined) {
delete process.env.EXPO_STAGING;
} else {
process.env.EXPO_STAGING = previous;
}
}
});
it('returns url for expo-go', () => {
expect(
getUpdateGroupQr({
qrTarget: 'expo-go',
appScheme: 'myapp-dev',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'appslug',
})
).toBe('https://qr.expo.dev/eas-update?projectId=projectId&groupId=updateGroupId');
});
it('returns url for dev-build', () => {
expect(
getUpdateGroupQr({
qrTarget: 'dev-build',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'appslug',
appScheme: undefined,
})
).toBe(
'https://qr.expo.dev/eas-update?appScheme=appslug&projectId=projectId&groupId=updateGroupId'
);
});
it('returns url for dev-build, with `_` in appSlug', () => {
expect(
getUpdateGroupQr({
qrTarget: 'dev-build',
projectId: 'projectId',
updateGroupId: 'updateGroupId',
appSlug: 'hello_world',
appScheme: undefined,
})
).toBe(
'https://qr.expo.dev/eas-update?appScheme=helloworld&projectId=projectId&groupId=updateGroupId'
);
});
});
@@ -2,7 +2,14 @@ import * as core from '@actions/core';
import * as exec from '@actions/exec';
import * as io from '@actions/io';
import { authenticate, projectQR, projectLink, projectDeepLink, parseCommand } from '../src/expo';
import {
authenticate,
parseCommand,
projectDeepLink,
projectInfo,
projectLink,
projectQR,
} from '../expo';
jest.mock('@actions/core');
jest.mock('@actions/exec');
@@ -51,6 +58,28 @@ describe(authenticate, () => {
});
});
describe(projectInfo, () => {
it('resolves project info using the project Expo CLI', async () => {
jest.mocked(exec.getExecOutput).mockResolvedValue({
exitCode: 0,
stdout: JSON.stringify({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }),
stderr: '',
});
await expect(projectInfo('fake/path')).resolves.toStrictEqual({
name: 'fakename',
slug: 'fakeslug',
owner: 'fakeowner',
});
expect(exec.getExecOutput).toBeCalledWith(
'npx',
['expo', 'config', '--json', '--type', 'prebuild'],
{ cwd: 'fake/path', silent: true }
);
expect(io.which).not.toBeCalledWith('expo', true);
});
});
describe(projectQR, () => {
it('throws when owner is undefined', () => {
expect(() => projectQR({ name: 'fakename', slug: 'fakeslug' })).toThrow('without owner');
@@ -63,9 +92,9 @@ describe(projectQR, () => {
});
it('returns url with owner, slug, and release channel', () => {
expect(projectQR({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')).toBe(
'https://qr.expo.dev/expo-go?owner=fakeowner&slug=fakeslug&releaseChannel=fakechannel'
);
expect(
projectQR({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')
).toBe('https://qr.expo.dev/expo-go?owner=fakeowner&slug=fakeslug&releaseChannel=fakechannel');
});
});
@@ -81,9 +110,9 @@ describe(projectLink, () => {
});
it('returns url with owner, slug, and release channel', () => {
expect(projectLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')).toBe(
'https://expo.dev/@fakeowner/fakeslug?release-channel=fakechannel'
);
expect(
projectLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')
).toBe('https://expo.dev/@fakeowner/fakeslug?release-channel=fakechannel');
});
});
@@ -99,8 +128,8 @@ describe(projectDeepLink, () => {
});
it('returns url with owner, slug, and release channel', () => {
expect(projectDeepLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')).toBe(
'exp://exp.host/@fakeowner/fakeslug?release-channel=fakechannel'
);
expect(
projectDeepLink({ name: 'fakename', slug: 'fakeslug', owner: 'fakeowner' }, 'fakechannel')
).toBe('exp://exp.host/@fakeowner/fakeslug?release-channel=fakechannel');
});
});
@@ -1,6 +1,7 @@
import type { FingerprintSource } from '@expo/fingerprint';
import { FingerprintDbManager } from '../../src/fingerprint/FingerprintDbManager';
import { FingerprintDbManager } from '../../fingerprint/FingerprintDbManager';
import { delayAsync } from '../../utils';
describe(FingerprintDbManager, () => {
let fingerprintDbManager: FingerprintDbManager;
@@ -19,8 +20,12 @@ describe(FingerprintDbManager, () => {
easBuildId: 'id1',
fingerprint: { sources: [], hash: 'hash1' },
});
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('nonExistedId')).toEqual([]);
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('hash1')).toEqual(['id1']);
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('nonExistedId')).toEqual(
[]
);
expect(await fingerprintDbManager.queryEasBuildIdsFromFingerprintAsync('hash1')).toEqual([
'id1',
]);
});
it('getFingerprintSourcesAsync', async () => {
@@ -40,7 +45,8 @@ describe(FingerprintDbManager, () => {
{
type: 'contents',
id: 'packageJson:scripts',
contents: '{"start":"expo start","android":"expo run:android","ios":"expo run:ios","web":"expo start --web"}',
contents:
'{"start":"expo start","android":"expo run:android","ios":"expo run:ios","web":"expo start --web"}',
reasons: ['packageJson:scripts'],
hash: '119dec73c92445762a48c9455d9f34a643be8cf0',
},
@@ -168,7 +174,3 @@ describe(FingerprintDbManager, () => {
expect(result?.gitCommitHash).toEqual('gitHash1');
});
});
async function delayAsync(ms: number) {
return new Promise(resolve => setTimeout(resolve, ms));
}
@@ -1,7 +1,7 @@
import * as github from '@actions/github';
import { setEnv, resetEnv } from './utils';
import { githubApi, pullContext } from '../src/github';
import { resetEnv, setEnv } from './utils';
import { githubApi, pullContext } from '../github';
jest.mock('@actions/github');
@@ -1,4 +1,4 @@
import { resolvePackage } from '../src/packager';
import { resolvePackage } from '../packager';
describe(resolvePackage, () => {
it('resolves expo-cli@^2.0.0 to 2.21.2', async () => {
@@ -18,9 +18,9 @@ describe(resolvePackage, () => {
});
it('rejects donotpublishthispackageoryouwillbefired with proper error', async () => {
await expect(resolvePackage('donotpublishthispackageoryouwillbefired', 'latest')).rejects.toThrow(
'Could not resolve'
);
await expect(
resolvePackage('donotpublishthispackageoryouwillbefired', 'latest')
).rejects.toThrow('Could not resolve');
});
it('rejects expo-cli@9999999 with proper error', async () => {
@@ -1,4 +1,4 @@
import { openDatabaseAsync, Database } from '../src/sqlite';
import { Database, openDatabaseAsync } from '../sqlite';
describe(openDatabaseAsync, () => {
let db: Database;
File renamed without changes.
@@ -3,8 +3,14 @@ import * as exec from '@actions/exec';
import os from 'os';
import path from 'path';
import { resetEnv, setEnv, setPlatform, resetPlatform } from './utils';
import { tempPath, toolPath, installToolFromPackage, patchWatchers, executeAction } from '../src/worker';
import { resetEnv, resetPlatform, setEnv, setPlatform } from './utils';
import {
executeAction,
installToolFromPackage,
patchWatchers,
tempPath,
toolPath,
} from '../worker';
jest.mock('@actions/core');
jest.mock('@actions/exec');
@@ -19,7 +25,9 @@ describe(tempPath, () => {
it('returns path with name, version, and arch type', () => {
setEnv('RUNNER_TEMP', 'fake/temp');
expect(tempPath('expo-cli', '5.0.3')).toBe(path.join('fake', 'temp', 'expo-cli', '5.0.3', os.arch()));
expect(tempPath('expo-cli', '5.0.3')).toBe(
path.join('fake', 'temp', 'expo-cli', '5.0.3', os.arch())
);
});
});
@@ -33,7 +41,9 @@ describe(toolPath, () => {
it('returns path with name, version, and arch type', () => {
setEnv('RUNNER_TOOL_CACHE', 'fake/tool');
expect(toolPath('eas-cli', '0.34.3')).toBe(path.join('fake', 'tool', 'eas-cli', '0.34.3', os.arch()));
expect(toolPath('eas-cli', '0.34.3')).toBe(
path.join('fake', 'tool', 'eas-cli', '0.34.3', os.arch())
);
});
});
+2 -2
View File
@@ -1,16 +1,16 @@
import { getInput, info, setFailed } from '@actions/core';
import {
BuildInfo,
appPlatformDisplayNames,
appPlatformEmojis,
BuildInfo,
easBuild,
getBuildLogsUrl,
parseCommand,
projectInfo,
projectOwner,
} from '../expo';
import { createIssueComment, createReaction, issueComment, Reaction } from '../github';
import { Reaction, createIssueComment, createReaction, issueComment } from '../github';
import { template } from '../utils';
import { executeAction } from '../worker';
@@ -0,0 +1,68 @@
import { setFailed, setOutput } from '@actions/core';
import { getBuildInfoForCurrentFingerprintAsync } from '../fingerprintUtils';
import { getInput } from '../input';
import { loadProjectConfig } from '../project';
import { executeAction } from '../worker';
type PlatformArg = 'android' | 'ios' | 'all';
export function collectContinousDeployFingerprintInfoInput() {
function validatePlatformInput(platformInput: string): platformInput is PlatformArg {
return ['android', 'ios', 'all'].includes(platformInput);
}
const platformInput = getInput('platform', { required: true });
if (!validatePlatformInput(platformInput)) {
throw new Error(`Invalid platform: ${platformInput}. Must be one of "all", "ios", "android".`);
}
return {
profile: getInput('profile', { required: true }),
platform: platformInput,
environment: getInput('environment'),
githubToken: getInput('github-token', { required: true }),
workingDirectory: getInput('working-directory', { required: true }),
};
}
executeAction(continousDeployFingerprintInfoAction);
export async function continousDeployFingerprintInfoAction(
input = collectContinousDeployFingerprintInfoInput()
) {
const config = await loadProjectConfig(input.workingDirectory, input.environment);
const projectId = config.extra?.eas?.projectId;
if (!projectId) {
return setFailed(`Missing 'extra.eas.projectId' in app.json or app.config.js.`);
}
const platformsToRun: Set<PlatformArg> =
input.platform === 'all' ? new Set(['ios', 'android']) : new Set([input.platform]);
const [androidBuildInfo, iosBuildInfo] = await Promise.all([
platformsToRun.has('android')
? getBuildInfoForCurrentFingerprintAsync({
platform: 'android',
profile: input.profile,
workingDirectory: input.workingDirectory,
isInPullRequest: false,
environment: input.environment,
})
: null,
platformsToRun.has('ios')
? getBuildInfoForCurrentFingerprintAsync({
platform: 'ios',
profile: input.profile,
workingDirectory: input.workingDirectory,
isInPullRequest: false,
environment: input.environment,
})
: null,
]);
setOutput('android-fingerprint', androidBuildInfo?.fingerprintHash);
setOutput('ios-fingerprint', iosBuildInfo?.fingerprintHash);
setOutput('android-build-id', androidBuildInfo?.buildInfo?.id);
setOutput('ios-build-id', iosBuildInfo?.buildInfo?.id);
}
@@ -0,0 +1,354 @@
import { info, isDebug, setFailed, setOutput } from '@actions/core';
import { getExecOutput } from '@actions/exec';
import { which } from '@actions/io';
import { ExpoConfig } from '@expo/config';
import { createDetails, getQrTarget, getSchemesInOrderFromConfig } from '../comment';
import { EasUpdate, getUpdateGroupQr, getUpdateGroupWebsite } from '../eas';
import { AppPlatform, BuildInfo, appPlatformEmojis, getBuildLogsUrl } from '../expo';
import { getBuildInfoForCurrentFingerprintAsync } from '../fingerprintUtils';
import { createIssueComment, hasPullContext, pullContext } from '../github';
import { getInput } from '../input';
import { loadProjectConfig } from '../project';
import { executeAction } from '../worker';
type BuildRunInfo = { buildInfo: BuildInfo; isNew: boolean; fingerprintHash: string };
type PlatformArg = 'android' | 'ios' | 'all';
export function collectContinuousDeployFingerprintInput() {
function validatePlatformInput(platformInput: string): platformInput is PlatformArg {
return ['android', 'ios', 'all'].includes(platformInput);
}
const platformInput = getInput('platform', { required: true });
if (!validatePlatformInput(platformInput)) {
throw new Error(`Invalid platform: ${platformInput}. Must be one of "all", "ios", "android".`);
}
return {
profile: getInput('profile', { required: true }),
branch: getInput('branch', { required: true }),
platform: platformInput,
environment: getInput('environment'),
appScheme: getInput('app-scheme') || undefined,
autoSubmitBuilds: getInput('auto-submit-builds') === 'true',
githubToken: getInput('github-token', { required: true }),
workingDirectory: getInput('working-directory', { required: true }),
};
}
executeAction(continuousDeployFingerprintAction);
export async function continuousDeployFingerprintAction(
input = collectContinuousDeployFingerprintInput()
) {
const isInPullRequest = hasPullContext();
const config = await loadProjectConfig(input.workingDirectory, input.environment);
const projectId = config.extra?.eas?.projectId;
if (!projectId) {
return setFailed(`Missing 'extra.eas.projectId' in app.json or app.config.js.`);
}
const platformsToRun: Set<PlatformArg> =
input.platform === 'all' ? new Set(['ios', 'android']) : new Set([input.platform]);
const [androidBuildRunInfo, iosBuildRunInfo] = await Promise.all([
platformsToRun.has('android')
? buildForPlatformIfNecessaryAsync({
platform: 'android',
profile: input.profile,
workingDirectory: input.workingDirectory,
isInPullRequest,
environment: input.environment,
autoSubmitBuild: input.autoSubmitBuilds,
})
: null,
platformsToRun.has('ios')
? buildForPlatformIfNecessaryAsync({
platform: 'ios',
profile: input.profile,
workingDirectory: input.workingDirectory,
isInPullRequest,
environment: input.environment,
autoSubmitBuild: input.autoSubmitBuilds,
})
: null,
]);
info(`Publishing EAS Update...`);
const updates = await publishEASUpdatesAsync({
cwd: input.workingDirectory,
branch: input.branch,
platform: input.platform,
environment: input.environment,
});
if (!isInPullRequest) {
info(`Skipped comment: action was not run from a pull request`);
} else {
const messageId = `continuous-deploy-fingerprint-projectId:${projectId}`;
const messageBody = createSummaryForUpdatesAndBuilds({
config,
projectId,
updates,
buildRunInfos: {
androidBuildRunInfo: androidBuildRunInfo ?? undefined,
iosBuildRunInfo: iosBuildRunInfo ?? undefined,
},
options: input,
});
await createIssueComment({
...pullContext(),
token: input.githubToken,
id: messageId,
body: messageBody,
});
}
setOutput('android-fingerprint', androidBuildRunInfo?.fingerprintHash);
setOutput('ios-fingerprint', iosBuildRunInfo?.fingerprintHash);
setOutput('android-build-id', androidBuildRunInfo?.buildInfo.id);
setOutput('android-did-start-new-build', androidBuildRunInfo?.isNew);
setOutput('ios-build-id', iosBuildRunInfo?.buildInfo?.id);
setOutput('ios-did-start-new-build', iosBuildRunInfo?.isNew);
setOutput('update-output', updates);
}
async function buildForPlatformIfNecessaryAsync({
platform,
workingDirectory,
profile,
isInPullRequest,
environment,
autoSubmitBuild,
}: {
platform: 'ios' | 'android';
profile: string;
workingDirectory: string;
isInPullRequest: boolean;
environment: string | null;
autoSubmitBuild: boolean;
}): Promise<BuildRunInfo> {
const humanReadablePlatformName = platform === 'ios' ? 'iOS' : 'Android';
const { buildInfo: existingBuildInfo, fingerprintHash } =
await getBuildInfoForCurrentFingerprintAsync({
workingDirectory,
platform,
profile,
isInPullRequest,
environment,
});
if (existingBuildInfo) {
info(
`Existing ${humanReadablePlatformName} build found with matching fingerprint: ${existingBuildInfo.id}`
);
return {
buildInfo: existingBuildInfo,
isNew: false,
fingerprintHash,
};
} else {
info(
`No existing ${humanReadablePlatformName} build found for fingerprint, starting a new build...`
);
return {
buildInfo: await createEASBuildAsync({
cwd: workingDirectory,
platform,
profile,
autoSubmit: autoSubmitBuild,
}),
isNew: true,
fingerprintHash,
};
}
}
async function createEASBuildAsync({
cwd,
profile,
platform,
autoSubmit,
}: {
cwd: string;
profile: string;
platform: 'ios' | 'android';
autoSubmit: boolean;
}): Promise<BuildInfo> {
try {
const extraDebugArgs = isDebug() ? ['--build-logger-level', 'debug'] : [];
const extraAutoSubmitArgs = autoSubmit ? ['--auto-submit'] : [];
const { stdout } = await getExecOutput(
await which('eas', true),
[
'build',
'--profile',
profile,
'--platform',
platform,
'--non-interactive',
'--json',
'--no-wait',
...extraDebugArgs,
...extraAutoSubmitArgs,
],
{
cwd,
silent: !isDebug(),
}
);
return JSON.parse(stdout)[0];
} catch (error: unknown) {
throw new Error(`Error running eas build command: ${String(error)}`, { cause: error });
}
}
async function publishEASUpdatesAsync({
cwd,
branch,
environment,
platform,
}: {
cwd: string;
branch: string;
environment: string | null;
platform: PlatformArg;
}): Promise<EasUpdate[]> {
let stdout: string;
try {
const args = [
'update',
'--auto',
'--branch',
branch,
'--platform',
platform,
'--non-interactive',
'--json',
];
if (environment) {
args.push('--environment', environment);
}
const execOutput = await getExecOutput(await which('eas', true), args, {
cwd,
silent: !isDebug(),
});
stdout = execOutput.stdout;
} catch (error: unknown) {
throw new Error(`Error running eas update command: ${String(error)}`, { cause: error });
}
return JSON.parse(stdout);
}
function createSummaryForUpdatesAndBuilds({
config,
projectId,
updates,
buildRunInfos,
options,
}: {
config: ExpoConfig;
projectId: string;
updates: EasUpdate[];
buildRunInfos: { androidBuildRunInfo?: BuildRunInfo; iosBuildRunInfo?: BuildRunInfo };
options: {
qrTarget?: 'expo-go' | 'dev-build' | 'dev-client';
workingDirectory: string;
appScheme: string | undefined;
};
}) {
const appSlug = config.slug;
const qrTarget = getQrTarget(options);
const appScheme = options.appScheme;
const appSchemes = appScheme ? [appScheme] : getSchemesInOrderFromConfig(config) || [];
const { androidBuildRunInfo, iosBuildRunInfo } = buildRunInfos;
const androidUpdate = updates.find(update => update.platform === 'android');
const iosUpdate = updates.find(update => update.platform === 'ios');
const getBuildLink = (build: BuildInfo | undefined) =>
build ? `[Build Permalink](${getBuildLogsUrl(build)})` : 'n/a';
const getUpdateLink = (update: EasUpdate | undefined) =>
update
? `[Update Permalink](${getUpdateGroupWebsite({ projectId, updateGroupId: update.group })})`
: 'n/a';
const getUpdateQRURL = (update: EasUpdate | undefined) =>
update
? getUpdateGroupQr({ projectId, updateGroupId: update.group, appSlug, appScheme, qrTarget })
: null;
const getBuildDetails = (buildRunInfo: BuildRunInfo) =>
getBuildLink(buildRunInfo.buildInfo) +
'<br />' +
createDetails({
summary: 'Details',
details: [
`Distribution: \`${buildRunInfo.buildInfo.distribution}\``,
`Build profile: \`${buildRunInfo.buildInfo.buildProfile}\``,
`Runtime version: \`${buildRunInfo.buildInfo.runtimeVersion}\``,
`App version: \`${buildRunInfo.buildInfo.appVersion}\``,
`Git commit: \`${buildRunInfo.buildInfo.gitCommitHash}\``,
].join('<br />'),
delim: '',
});
const getUpdateDetails = (update: EasUpdate | undefined) =>
update
? getUpdateLink(update) +
'<br />' +
createDetails({
summary: 'Details',
details: [
`Branch: \`${update.branch}\``,
`Runtime version: \`${update.runtimeVersion}\``,
`Git commit: \`${update.gitCommitHash}\``,
].join('<br />'),
delim: '',
})
: 'n/a';
const androidQRURL = getUpdateQRURL(androidUpdate);
const iosQRURL = getUpdateQRURL(iosUpdate);
const androidQr = androidQRURL
? `<a href="${androidQRURL}"><img src="${androidQRURL}" width="250px" height="250px" /></a>`
: null;
const iosQr = iosQRURL
? `<a href="${iosQRURL}"><img src="${iosQRURL}" width="250px" height="250px" /></a>`
: null;
const platformName = `Platform${updates.length === 1 ? '' : 's'}`;
const platformValue = updates
.map(update => update.platform)
.sort((a, b) => a.localeCompare(b))
.map(platform => `**${platform}**`)
.join(', ');
const schemesMessage = appSchemes[0] ? `- Scheme → **${appSchemes.join('**, **')}**` : '';
return `🚀 Expo continuous deployment is ready!
- Project → **${appSlug}**
- ${platformName} → ${platformValue}
${schemesMessage}
&nbsp; | ${appPlatformEmojis[AppPlatform.Android]} Android | ${
appPlatformEmojis[AppPlatform.Ios]
} iOS
--- | --- | ---
Fingerprint | ${androidBuildRunInfo?.buildInfo.runtimeVersion ?? 'n/a'} | ${
iosBuildRunInfo?.buildInfo.runtimeVersion ?? 'n/a'
}
Build Details | ${androidBuildRunInfo ? getBuildDetails(androidBuildRunInfo) : 'n/a'} | ${
iosBuildRunInfo ? getBuildDetails(iosBuildRunInfo) : 'n/a'
}
Update Details | ${getUpdateDetails(androidUpdate)} | ${getUpdateDetails(iosUpdate)}
Update QR | ${androidQr ?? 'n/a'} | ${iosQr ?? 'n/a'}
`;
}
+7 -3
View File
@@ -3,15 +3,19 @@ import assert from 'assert';
import { deleteCacheAsync } from '../cacher';
import { collectFingerprintActionInput, saveDbToCacheAsync } from '../fingerprint';
import { isPushDefaultBranchContext } from '../github';
import { getRepoDefaultBranch, isPushBranchContext } from '../github';
import { retryAsync } from '../utils';
import { executeAction } from '../worker';
executeAction(runAction);
export async function runAction(input = collectFingerprintActionInput()) {
if (!isPushDefaultBranchContext()) {
const targetBranch = input.savingDbBranch ?? getRepoDefaultBranch();
assert(targetBranch);
if (!isPushBranchContext(targetBranch)) {
return;
}
info(`Saving fingerprint database to ${targetBranch} branch.`);
try {
const ref = process.env.GITHUB_REF;
@@ -20,5 +24,5 @@ export async function runAction(input = collectFingerprintActionInput()) {
} catch (e) {
info(`Failed to delete the cache: ${e}`);
}
await saveDbToCacheAsync(input.fingerprintDbCacheKey);
await retryAsync(() => saveDbToCacheAsync(input.fingerprintDbCacheKey), 3);
}
+13 -3
View File
@@ -1,20 +1,30 @@
import { setOutput } from '@actions/core';
import {
createFingerprintOutputAsync,
collectFingerprintActionInput,
createFingerprintDbManagerAsync,
createFingerprintOutputAsync,
} from '../fingerprint';
import { executeAction } from '../worker';
executeAction(runAction);
export async function runAction(input = collectFingerprintActionInput()) {
const dbManager = await createFingerprintDbManagerAsync(input.packager, input.fingerprintDbCacheKey);
const { currentFingerprint, diff } = await createFingerprintOutputAsync(dbManager, input);
const dbManager = await createFingerprintDbManagerAsync(
input.packager,
input.fingerprintDbCacheKey
);
const { currentFingerprint, previousFingerprint, diff } = await createFingerprintOutputAsync(
dbManager,
input
);
await dbManager.upsertFingerprintByGitCommitHashAsync(input.currentGitCommitHash, {
fingerprint: currentFingerprint,
});
setOutput('previous-fingerprint', previousFingerprint);
setOutput('current-fingerprint', currentFingerprint);
setOutput('previous-git-commit', input.previousGitCommitHash);
setOutput('current-git-commit', input.currentGitCommitHash);
setOutput('fingerprint-diff', diff);
}
+49 -31
View File
@@ -1,17 +1,18 @@
import { getBooleanInput, getInput, setOutput, group, setFailed, info } from '@actions/core';
import { getBooleanInput, getInput, group, info, setFailed, setOutput } from '@actions/core';
import { context } from '@actions/github';
import type { ExpoConfig } from '@expo/config';
import type { Fingerprint, FingerprintSource } from '@expo/fingerprint';
import type { Fingerprint, FingerprintDiffItem } from '@expo/fingerprint';
import assert from 'assert';
import { validate as isValidUUID } from 'uuid';
import { deleteCacheAsync } from '../cacher';
import { createDetails } from '../comment';
import {
createEasBuildFromRawCommandAsync,
BuildInfo,
getBuildLogsUrl,
appPlatformEmojis,
cancelEasBuildAsync,
createEasBuildFromRawCommandAsync,
getBuildLogsUrl,
queryEasBuildInfoAsync,
} from '../expo';
import {
@@ -26,12 +27,13 @@ import {
fetchIssueComment,
getGitCommandMessageAsync,
getPullRequestFromGitCommitShaAsync,
getRepoDefaultBranch,
hasPullContext,
isPushDefaultBranchContext,
isPushBranchContext,
pullContext,
} from '../github';
import { loadProjectConfig } from '../project';
import { template } from '../utils';
import { retryAsync, template } from '../utils';
import { executeAction } from '../worker';
export const MESSAGE_ID = 'projectId:previewBuild:{projectId}';
@@ -49,7 +51,7 @@ export function collectPreviewBuildActionInput() {
executeAction(previewAction);
export async function previewAction(input = collectPreviewBuildActionInput()) {
const config = await loadProjectConfig(input.workingDirectory);
const config = await loadProjectConfig(input.workingDirectory, null);
if (!config.extra?.eas?.projectId) {
return setFailed(
'Missing "extra.eas.projectId" in app.json or app.config.js. Please run `eas build:configure` first.'
@@ -61,7 +63,10 @@ export async function previewAction(input = collectPreviewBuildActionInput()) {
return;
}
const dbManager = await createFingerprintDbManagerAsync(input.packager, input.fingerprintDbCacheKey);
const dbManager = await createFingerprintDbManagerAsync(
input.packager,
input.fingerprintDbCacheKey
);
const { currentFingerprint, diff } = await createFingerprintOutputAsync(dbManager, input);
if (diff.length === 0) {
info('Fingerprint is compatible, no new builds are required.');
@@ -69,13 +74,16 @@ export async function previewAction(input = collectPreviewBuildActionInput()) {
dbManager,
githubToken: input.githubToken,
fingerprintDbCacheKey: input.fingerprintDbCacheKey,
savingDbBranch: input.savingDbBranch,
gitCommitHash: input.currentGitCommitHash,
manyBuilds: [{ fingerprint: currentFingerprint }],
});
await maybeCancelPreviousBuildsAsync(config, input);
const variables = getVariables(config, []);
const messageId = template(input.commentId, variables);
const latestEasEntity = await dbManager.getLatestEasEntityFromFingerprintAsync(currentFingerprint.hash);
const latestEasEntity = await dbManager.getLatestEasEntityFromFingerprintAsync(
currentFingerprint.hash
);
const latestEasBuildInfo = latestEasEntity?.easBuildId
? await queryEasBuildInfoAsync(input.workingDirectory, latestEasEntity.easBuildId)
: null;
@@ -101,6 +109,7 @@ export async function previewAction(input = collectPreviewBuildActionInput()) {
dbManager,
githubToken: input.githubToken,
fingerprintDbCacheKey: input.fingerprintDbCacheKey,
savingDbBranch: input.savingDbBranch,
gitCommitHash: input.currentGitCommitHash,
manyBuilds: builds.map(build => ({
easBuildId: build.id,
@@ -171,7 +180,11 @@ async function maybeCreateCommentAsync(
}
}
function setOutputs(variables: ReturnType<typeof getVariables>, messageId: string, messageBody: string) {
function setOutputs(
variables: ReturnType<typeof getVariables>,
messageId: string,
messageBody: string
) {
for (const [name, value] of Object.entries(variables)) {
setOutput(name, value);
}
@@ -201,21 +214,9 @@ export function getVariables(config: ExpoConfig, builds: BuildInfo[]) {
};
}
function createDetails({
summary,
details,
delim = '\n',
}: {
summary: string;
details: string;
delim?: string;
}): string {
return `<details><summary>${summary}</summary>${delim.repeat(2)}${details}${delim}</details>`;
}
function createMessageBodyInBuilding(
builds: BuildInfo[],
fingerprintDiff: FingerprintSource[],
fingerprintDiff: FingerprintDiffItem[],
input: ReturnType<typeof collectPreviewBuildActionInput>
) {
const tableRows: string[] = [];
@@ -311,14 +312,18 @@ async function maybeUpdateFingerprintDbAsync(params: {
githubToken: string;
fingerprintDbCacheKey: string;
gitCommitHash: string;
savingDbBranch: string | undefined;
manyBuilds: {
easBuildId?: string;
fingerprint: Fingerprint;
}[];
}) {
if (!isPushDefaultBranchContext()) {
const targetBranch = params.savingDbBranch ?? getRepoDefaultBranch();
assert(targetBranch);
if (!isPushBranchContext(targetBranch)) {
return;
}
for (const build of params.manyBuilds) {
await params.dbManager.upsertFingerprintByGitCommitHashAsync(params.gitCommitHash, {
easBuildId: build.easBuildId,
@@ -332,26 +337,36 @@ async function maybeUpdateFingerprintDbAsync(params: {
} catch (e) {
info(`Failed to delete the cache: ${e}`);
}
await saveDbToCacheAsync(params.fingerprintDbCacheKey);
await retryAsync(() => saveDbToCacheAsync(params.fingerprintDbCacheKey), 3);
}
//#region Non pull request context
async function handleNonPullRequest(config: ExpoConfig, input: ReturnType<typeof collectPreviewBuildActionInput>) {
async function handleNonPullRequest(
config: ExpoConfig,
input: ReturnType<typeof collectPreviewBuildActionInput>
) {
info('Non pull request context, skipping comment.');
if (!isPushDefaultBranchContext()) {
const targetBranch = input.savingDbBranch ?? getRepoDefaultBranch();
assert(targetBranch);
if (!isPushBranchContext(targetBranch)) {
return;
}
info('Updating fingerprint database for the default branch push event.');
const dbManager = await createFingerprintDbManagerAsync(input.packager, input.fingerprintDbCacheKey);
info(`Updating fingerprint database for the ${targetBranch} branch push event.`);
const dbManager = await createFingerprintDbManagerAsync(
input.packager,
input.fingerprintDbCacheKey
);
const { currentFingerprint } = await createFingerprintOutputAsync(dbManager, input);
const associatedPRs = await getPullRequestFromGitCommitShaAsync(
{ token: input.githubToken },
input.currentGitCommitHash
);
const easBuildIds = (
await Promise.all(associatedPRs.map(pr => queryEasBuildIdsFromPrAsync(pr.prNumber, config, input)))
await Promise.all(
associatedPRs.map(pr => queryEasBuildIdsFromPrAsync(pr.prNumber, config, input))
)
).flat();
let manyBuilds: { easBuildId?: string; fingerprint: Fingerprint }[];
@@ -363,13 +378,16 @@ async function handleNonPullRequest(config: ExpoConfig, input: ReturnType<typeof
info(`Found EAS build IDs in associated PRs: ${easBuildIds.join(', ')}`);
} else {
manyBuilds = [{ fingerprint: currentFingerprint }];
info('No EAS build IDs found in associated PRs, creating a fingerprint entry without EAS build ID.');
info(
'No EAS build IDs found in associated PRs, creating a fingerprint entry without EAS build ID.'
);
}
await maybeUpdateFingerprintDbAsync({
dbManager,
githubToken: input.githubToken,
fingerprintDbCacheKey: input.fingerprintDbCacheKey,
savingDbBranch: input.savingDbBranch,
gitCommitHash: input.currentGitCommitHash,
manyBuilds,
});
+1 -1
View File
@@ -1,4 +1,4 @@
import { getBooleanInput, getInput, setOutput, info, warning } from '@actions/core';
import { getBooleanInput, getInput, info, setOutput, warning } from '@actions/core';
import { projectDeepLink, projectInfo, projectLink, projectOwner, projectQR } from '../expo';
import { createIssueComment, pullContext } from '../github';
+50 -32
View File
@@ -1,7 +1,14 @@
import { getBooleanInput, getInput, setOutput, group, setFailed, info } from '@actions/core';
import { getBooleanInput, getInput, group, info, setFailed, setOutput } from '@actions/core';
import { ExpoConfig } from '@expo/config';
import { assertEasVersion, createUpdate, EasUpdate, getUpdateGroupQr, getUpdateGroupWebsite } from '../eas';
import { getQrTarget, getSchemesInOrderFromConfig } from '../comment';
import {
EasUpdate,
assertEasVersion,
createUpdate,
getUpdateGroupQr,
getUpdateGroupWebsite,
} from '../eas';
import { createIssueComment, hasPullContext, pullContext } from '../github';
import { loadProjectConfig } from '../project';
import { template } from '../utils';
@@ -10,13 +17,20 @@ import { executeAction } from '../worker';
export const MESSAGE_ID = 'projectId:{projectId}';
export function previewInput() {
const qrTarget = getInput('qr-target') || undefined;
if (qrTarget && !['expo-go', 'dev-client'].includes(qrTarget)) {
throw new Error(`Invalid QR code target: "${qrTarget}", expected "expo-go" or "dev-build"`);
}
return {
command: getInput('command'),
appScheme: getInput('app-scheme') || undefined,
shouldComment: !getInput('comment') || getBooleanInput('comment'),
commentId: getInput('comment-id') || MESSAGE_ID,
workingDirectory: getInput('working-directory'),
githubToken: getInput('github-token'),
appScheme: getInput('app-scheme'),
// Note, `dev-build` is prefered, but `dev-client` is supported to aovid confusion
qrTarget: qrTarget as undefined | 'expo-go' | 'dev-build' | 'dev-client',
};
}
@@ -31,14 +45,16 @@ export async function previewAction(input = previewInput()) {
// Create the update before loading project information.
// When the project needs to be set up, EAS project ID won't be available before this command.
const command = sanitizeCommand(input.command);
const updates = await group(`Run eas ${command}"`, () => createUpdate(input.workingDirectory, command));
const updates = await group(`Run eas ${command}"`, () =>
createUpdate(input.workingDirectory, command)
);
const update = updates.find(update => !!update);
if (!update) {
return setFailed(`No update found in command output.`);
}
const config = await loadProjectConfig(input.workingDirectory);
const config = await loadProjectConfig(input.workingDirectory, null);
if (!config.extra?.eas?.projectId) {
return setFailed(`Missing 'extra.eas.projectId' in app.json or app.config.js.`);
}
@@ -96,24 +112,38 @@ function sanitizeCommand(input: string): string {
/**
* Generate useful variables for the message body, and as step outputs.
*/
export function getVariables(config: ExpoConfig, updates: EasUpdate[], input: ReturnType<typeof previewInput>) {
export function getVariables(
config: ExpoConfig,
updates: EasUpdate[],
options: ReturnType<typeof previewInput>
) {
const projectId: string = config.extra?.eas?.projectId;
const android = updates.find(update => update.platform === 'android');
const ios = updates.find(update => update.platform === 'ios');
const appScheme = input.appScheme || getSchemeFromConfig(config) || '';
const appScheme = options.appScheme;
const appSchemes = appScheme ? [appScheme] : getSchemesInOrderFromConfig(config) || [];
const appSlug = config.slug;
const qrTarget = getQrTarget(options);
return {
// EAS / Expo specific
projectId,
projectName: config.name,
projectSlug: config.slug,
projectScheme: appScheme,
projectSlug: appSlug,
projectScheme: appSchemes[0] || '', // The override, or the longest configured app scheme
projectSchemes: JSON.stringify(appSchemes), // The override, or configured app schemes in priority order as JSON
// Shared update properties
// Note, only use these properties when the update groups are identical
groupId: updates[0].group,
runtimeVersion: updates[0].runtimeVersion,
qr: getUpdateGroupQr({ projectId, updateGroupId: updates[0].group, appScheme }),
qr: getUpdateGroupQr({
projectId,
updateGroupId: updates[0].group,
appSlug,
appScheme,
qrTarget,
}),
link: getUpdateGroupWebsite({ projectId, updateGroupId: updates[0].group }),
// These are safe to access regardless of the update groups
branchName: updates[0].branch,
@@ -127,7 +157,9 @@ export function getVariables(config: ExpoConfig, updates: EasUpdate[], input: Re
androidManifestPermalink: android?.manifestPermalink || '',
androidMessage: android?.message || '',
androidRuntimeVersion: android?.runtimeVersion || '',
androidQR: android ? getUpdateGroupQr({ projectId, updateGroupId: android.group, appScheme }) : '',
androidQR: android
? getUpdateGroupQr({ projectId, updateGroupId: android.group, appSlug, appScheme, qrTarget })
: '',
androidLink: android ? getUpdateGroupWebsite({ projectId, updateGroupId: android.group }) : '',
// iOS update
iosId: ios?.id || '',
@@ -136,29 +168,13 @@ export function getVariables(config: ExpoConfig, updates: EasUpdate[], input: Re
iosManifestPermalink: ios?.manifestPermalink || '',
iosMessage: ios?.message || '',
iosRuntimeVersion: ios?.runtimeVersion || '',
iosQR: ios ? getUpdateGroupQr({ projectId, updateGroupId: ios.group, appScheme }) : '',
iosQR: ios
? getUpdateGroupQr({ projectId, updateGroupId: ios.group, appSlug, appScheme, qrTarget })
: '',
iosLink: ios ? getUpdateGroupWebsite({ projectId, updateGroupId: ios.group }) : '',
};
}
/**
* Retrieve the app scheme from project config, using the following criteria:
* - If the scheme is a string, return that.
* - If the scheme is an array, return the longest scheme.
*/
export function getSchemeFromConfig(config: ExpoConfig) {
if (typeof config.scheme === 'string') {
return config.scheme;
}
if (Array.isArray(config.scheme) && config.scheme.length > 0) {
const longestToShortest = config.scheme.sort((a, b) => b.length - a.length);
return longestToShortest[0];
}
return null;
}
/**
* Generate the message body for a single update.
* Note, this is not configurable, but you can use the variables used to construct your own.
@@ -180,13 +196,15 @@ function createSummaryHeader(updates: EasUpdate[], vars: ReturnType<typeof getVa
.map(platform => `**${platform}**`)
.join(', ');
const appScheme = vars.projectScheme ? `- Scheme → **${vars.projectScheme}**` : '';
const appSchemes = vars.projectScheme
? `- Scheme → **${JSON.parse(vars.projectSchemes).join('**, **')}**`
: '';
return `🚀 Expo preview is ready!
- Project → **${vars.projectSlug}**
- ${platformName} → ${platformValue}
${appScheme}`.trim();
${appSchemes}`.trim();
}
function createSingleQrSummary(updates: EasUpdate[], vars: ReturnType<typeof getVariables>) {
+10 -3
View File
@@ -1,4 +1,4 @@
import { saveCache, restoreCache, ReserveCacheError, isFeatureAvailable } from '@actions/cache';
import { ReserveCacheError, isFeatureAvailable, restoreCache, saveCache } from '@actions/cache';
import { warning } from '@actions/core';
import { context } from '@actions/github';
import os from 'os';
@@ -24,7 +24,10 @@ export function cacheKey(name: string, version: string, manager: string): string
/**
* Restore a directory from the remote cache.
*/
export async function restoreCacheAsync(cachePath: string, cacheKey: string): Promise<string | null> {
export async function restoreCacheAsync(
cachePath: string,
cacheKey: string
): Promise<string | null> {
if (!cacheIsAvailable()) {
warning(`Skipped restoring from remote cache, not available.`);
return null;
@@ -60,7 +63,11 @@ export async function saveCacheAsync(cachePath: string, cacheKey: string): Promi
* Delete a cache key from the remote cache.
* Note that is not using the official API from @actions/cache but using the GitHub API directly.
*/
export async function deleteCacheAsync(githubToken: string, cacheKey: string, ref: string): Promise<void> {
export async function deleteCacheAsync(
githubToken: string,
cacheKey: string,
ref: string
): Promise<void> {
const github = githubApi({ token: githubToken });
await github.rest.actions.deleteActionsCacheByKey({
...context.repo,
+62
View File
@@ -0,0 +1,62 @@
import { debug } from '@actions/core';
import { ExpoConfig } from '@expo/config';
import { projectAppType } from './expo';
export function getQrTarget(input: {
qrTarget?: 'expo-go' | 'dev-build' | 'dev-client';
workingDirectory: string;
}) {
if (!input.qrTarget) {
const appType = projectAppType(input.workingDirectory);
debug(`Using inferred QR code target: "${appType}"`);
return appType;
}
switch (input.qrTarget) {
// Note, `dev-build` is prefered, but `dev-client` is supported to aovid confusion
case 'dev-client':
case 'dev-build':
debug(`Using QR code target: "dev-build"`);
return 'dev-build';
case 'expo-go':
debug(`Using QR code target: "expo-go"`);
return 'expo-go';
default:
throw new Error(
`Invalid QR code target: "${input.qrTarget}", expected "expo-go" or "dev-build"`
);
}
}
/**
* Retrieve the app schemes, in correct priority order, from project config.
* - If the scheme is a string, return `[scheme]`.
* - If the scheme is an array, return the schemes sorted by length, longest first.
* - If the scheme is empty/incorrect, return an empty array.
*/
export function getSchemesInOrderFromConfig(config: ExpoConfig) {
if (typeof config.scheme === 'string') {
return [config.scheme];
}
if (Array.isArray(config.scheme)) {
return config.scheme.sort((a, b) => b.length - a.length);
}
return [];
}
export function createDetails({
summary,
details,
delim = '\n',
}: {
summary: string;
details: string;
delim?: string;
}): string {
return `<details><summary>${summary}</summary>${delim.repeat(2)}${details}${delim}</details>`;
}
+30 -6
View File
@@ -32,11 +32,13 @@ export async function assertEasVersion(versionRange: string) {
try {
({ stdout } = await getExecOutput(await which('eas', true), ['--version']));
} catch {
throw new Error(`Could not verify the EAS CLI version, reason:\nCommand failed 'eas --version'`);
throw new Error(
`Could not verify the EAS CLI version, reason:\nCommand failed 'eas --version'`
);
}
const version = stdout.match(/eas-cli\/([^\s]+)/i);
if (!version || !version[1]) {
if (!version?.[1]) {
throw new Error(`Could not verify the EAS CLI version, reason:\nUnexpected output received.`);
}
@@ -71,16 +73,37 @@ export async function createUpdate(cwd: string, command: string): Promise<EasUpd
export function getUpdateGroupQr({
projectId,
updateGroupId,
appSlug,
appScheme,
qrTarget,
}: {
projectId: string;
updateGroupId: string;
appScheme?: string;
appSlug: string;
appScheme: string | undefined;
qrTarget: 'expo-go' | 'dev-build';
}): string {
if (qrTarget === 'dev-build' && appScheme) {
// /eas-update treats appScheme as a slug and prefixes it with exp+.
// /development-client uses the native scheme verbatim instead.
const url = new URL('https://qr.expo.dev/development-client');
const host = process.env.EXPO_STAGING ? 'staging-u.expo.dev' : 'u.expo.dev';
url.searchParams.append('appScheme', appScheme);
url.searchParams.append('url', `https://${host}/${projectId}/group/${updateGroupId}`);
return url.toString();
}
const url = new URL('https://qr.expo.dev/eas-update');
if (appScheme) {
url.searchParams.append('appScheme', appScheme);
if (qrTarget === 'dev-build') {
// While the parameter is called `appScheme`, it's actually the app's slug
// This should only be added when using dev clients as target
// See: https://github.com/expo/expo/blob/8ae75dde393e5d2393d446227a1fe2482c75eec3/packages/expo-dev-client/plugin/src/getDefaultScheme.ts#L17
url.searchParams.append('appScheme', appSlug.replace(/[^A-Za-z0-9+\-.]/g, ''));
}
if (process.env.EXPO_STAGING) {
url.searchParams.append('host', 'staging-u.expo.dev');
}
url.searchParams.append('projectId', projectId);
@@ -97,5 +120,6 @@ export function getUpdateGroupWebsite({
projectId: string;
updateGroupId: string;
}): string {
return `https://expo.dev/projects/${projectId}/updates/${updateGroupId}`;
const baseUrl = process.env.EXPO_STAGING ? 'staging.expo.dev' : 'expo.dev';
return `https://${baseUrl}/projects/${projectId}/updates/${updateGroupId}`;
}
+93 -22
View File
@@ -1,7 +1,8 @@
import { info, exportVariable } from '@actions/core';
import { exportVariable, info } from '@actions/core';
import { exec, getExecOutput } from '@actions/exec';
import { which } from '@actions/io';
import { ok as assert } from 'assert';
import path from 'path';
import { URL } from 'url';
export type CliName = 'expo' | 'eas';
@@ -24,6 +25,16 @@ export enum AppPlatform {
Ios = 'IOS',
}
export enum BuildStatus {
New = 'NEW',
InQueue = 'IN_QUEUE',
InProgress = 'IN_PROGRESS',
PendingCancel = 'PENDING_CANCEL',
Errored = 'ERRORED',
Finished = 'FINISHED',
Canceled = 'CANCELED',
}
export type BuildInfo = {
id: string;
platform: AppPlatform;
@@ -33,14 +44,41 @@ export type BuildInfo = {
name: string;
};
};
releaseChannel: string;
channel: string;
releaseChannel?: string;
distribution: string;
buildProfile: string;
runtimeVersion?: string;
sdkVersion: string;
appVersion: string;
gitCommitHash: string;
expirationDate: string;
status: BuildStatus;
};
type EasCliBuildJson = Omit<BuildInfo, 'project' | 'channel' | 'runtimeVersion'> & {
project?: BuildInfo['project'];
app?: BuildInfo['project'];
channel?: string;
updateChannel?: { name: string } | null;
runtimeVersion?: string;
runtime?: { version: string } | null;
};
/**
* Convert the build JSON from any eas-cli version to `BuildInfo`.
* eas-cli 22 moved `project`, `channel`, and `runtimeVersion` to `app`, `updateChannel`, and `runtime`.
*/
export function normalizeBuildInfo(build: EasCliBuildJson): BuildInfo {
const { app, updateChannel, runtime, ...rest } = build;
return {
...rest,
project: (build.project ?? app)!,
channel: (build.channel ?? updateChannel?.name)!,
runtimeVersion: build.runtimeVersion ?? runtime?.version,
};
}
export const appPlatformDisplayNames: Record<AppPlatform, string> = {
[AppPlatform.Android]: 'Android',
[AppPlatform.Ios]: 'iOS',
@@ -113,9 +151,13 @@ export async function runCommand(cmd: Command) {
let stderr = '';
try {
({ stderr, stdout } = await getExecOutput(await which(cmd.cli), cmd.args.concat('--non-interactive'), {
silent: false,
}));
({ stderr, stdout } = await getExecOutput(
await which(cmd.cli),
cmd.args.concat('--non-interactive'),
{
silent: false,
}
));
} catch (error: unknown) {
throw new Error(`Could not run command ${cmd.args.join(' ')}`, { cause: error });
}
@@ -135,7 +177,7 @@ export async function easBuild(cmd: Command): Promise<BuildInfo[]> {
throw new Error(`Could not run command eas build`, { cause: error });
}
return JSON.parse(stdout);
return (JSON.parse(stdout) as EasCliBuildJson[]).map(normalizeBuildInfo);
}
/**
@@ -167,7 +209,7 @@ export async function createEasBuildFromRawCommandAsync(
throw new Error(`Could not run command eas build`, { cause: error });
}
return JSON.parse(stdout);
return (JSON.parse(stdout) as EasCliBuildJson[]).map(normalizeBuildInfo);
}
/**
@@ -184,13 +226,20 @@ export async function cancelEasBuildAsync(cwd: string, buildId: string): Promise
/**
* Query the EAS BuildInfo from given buildId.
*/
export async function queryEasBuildInfoAsync(cwd: string, buildId: string): Promise<BuildInfo | null> {
export async function queryEasBuildInfoAsync(
cwd: string,
buildId: string
): Promise<BuildInfo | null> {
try {
const { stdout } = await getExecOutput(await which('eas', true), ['build:view', buildId, '--json'], {
cwd,
silent: true,
});
return JSON.parse(stdout);
const { stdout } = await getExecOutput(
await which('eas', true),
['build:view', buildId, '--json'],
{
cwd,
silent: true,
}
);
return normalizeBuildInfo(JSON.parse(stdout));
} catch (error: unknown) {
info(`Failed to query eas build ${buildId}: ${String(error)}`);
}
@@ -198,13 +247,13 @@ export async function queryEasBuildInfoAsync(cwd: string, buildId: string): Prom
}
/**
* Try to resolve the project info, by running 'expo config --type prebuild'.
* Try to resolve the project info using the app's own Expo CLI.
*/
export async function projectInfo(dir: string): Promise<ProjectInfo> {
let stdout = '';
try {
({ stdout } = await getExecOutput(await which('expo', true), ['config', '--json', '--type', 'prebuild'], {
({ stdout } = await getExecOutput('npx', ['expo', 'config', '--json', '--type', 'prebuild'], {
cwd: dir,
silent: true,
}));
@@ -216,6 +265,32 @@ export async function projectInfo(dir: string): Promise<ProjectInfo> {
return { name, slug, owner };
}
/**
* Determine if the current project is using `dev-build` or `expo-go`.
* This is based on the `@expo/cli` check to enable dev client mode.
*
* @see https://github.com/expo/expo/blob/190a80f393bc730eb3f300df52d82b701e4b8ff5/packages/%40expo/cli/src/utils/analytics/getDevClientProperties.ts#L12-L15
*/
export function projectAppType(dir: string): 'expo-go' | 'dev-build' {
const packageFile = path.resolve(dir, 'package.json');
let packageJson: any = {};
try {
packageJson = require(packageFile);
} catch (error: unknown) {
throw new Error(`Could not load the project package file in: ${packageFile}`, { cause: error });
}
if (
packageJson?.dependencies?.['expo-dev-client'] ||
packageJson?.devDependencies?.['expo-dev-client']
) {
return 'dev-build';
}
return 'expo-go';
}
/**
* Create a QR code for an update on project, with an optional release channel.
*/
@@ -261,13 +336,9 @@ export function projectDeepLink(project: ProjectInfo, channel?: string): string
}
export function getBuildLogsUrl(build: BuildInfo): string {
// TODO: reuse this function from the original source
// see: https://github.com/expo/eas-cli/blob/896f7f038582347c57dc700be9ea7d092b5a3a21/packages/eas-cli/src/build/utils/url.ts#L13-L21
const { project } = build;
const path = project
? `/accounts/${project.ownerAccount.name}/projects/${project.slug}/builds/${build.id}`
: `/builds/${build.id}`;
const url = new URL(path, 'https://expo.dev');
const path = `/accounts/${project.ownerAccount.name}/projects/${project.slug}/builds/${build.id}`;
const baseUrl = process.env.EXPO_STAGING ? 'staging.expo.dev' : 'expo.dev';
const url = new URL(path, `https://${baseUrl}`);
return url.toString();
}
+21 -9
View File
@@ -1,18 +1,20 @@
import type { Fingerprint as FingerprintType, FingerprintSource } from '@expo/fingerprint';
import type { FingerprintSource, Fingerprint as FingerprintType } from '@expo/fingerprint';
import { openDatabaseAsync, Database } from '../sqlite';
import { Database, openDatabaseAsync } from '../sqlite';
export type FingerprintDbEntity = Camelize<RawFingerprintDbEntity> & {
fingerprint: FingerprintType;
};
export class FingerprintDbManager {
constructor(private dbPath: string) {}
constructor(private readonly dbPath: string) {}
public async initAsync(): Promise<Database> {
const db = await openDatabaseAsync(this.dbPath);
await db.runAsync(
`CREATE TABLE IF NOT EXISTS ${FingerprintDbManager.TABLE_NAME} (${FingerprintDbManager.SCHEMA.join(', ')})`
`CREATE TABLE IF NOT EXISTS ${
FingerprintDbManager.TABLE_NAME
} (${FingerprintDbManager.SCHEMA.join(', ')})`
);
for (const index of FingerprintDbManager.INDEXES) {
await db.runAsync(index);
@@ -64,7 +66,9 @@ export class FingerprintDbManager {
/**
* Get the latest entity from the fingerprint hash where the eas_build_id is not null.
*/
public async getLatestEasEntityFromFingerprintAsync(fingerprintHash: string): Promise<FingerprintDbEntity | null> {
public async getLatestEasEntityFromFingerprintAsync(
fingerprintHash: string
): Promise<FingerprintDbEntity | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -77,7 +81,9 @@ export class FingerprintDbManager {
return row ? FingerprintDbManager.serialize(row) : null;
}
public async getEntityFromGitCommitHashAsync(gitCommitHash: string): Promise<FingerprintDbEntity | null> {
public async getEntityFromGitCommitHashAsync(
gitCommitHash: string
): Promise<FingerprintDbEntity | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -88,7 +94,9 @@ export class FingerprintDbManager {
return row ? FingerprintDbManager.serialize(row) : null;
}
public async getFirstEntityFromFingerprintHashAsync(fingerprintHash: string): Promise<FingerprintDbEntity | null> {
public async getFirstEntityFromFingerprintHashAsync(
fingerprintHash: string
): Promise<FingerprintDbEntity | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -99,7 +107,9 @@ export class FingerprintDbManager {
return row ? FingerprintDbManager.serialize(row) : null;
}
public async queryEntitiesFromFingerprintHashAsync(fingerprintHash: string): Promise<FingerprintDbEntity[]> {
public async queryEntitiesFromFingerprintHashAsync(
fingerprintHash: string
): Promise<FingerprintDbEntity[]> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
@@ -110,7 +120,9 @@ export class FingerprintDbManager {
return rows.map(row => FingerprintDbManager.serialize(row));
}
public async getFingerprintSourcesAsync(fingerprintHash: string): Promise<FingerprintSource[] | null> {
public async getFingerprintSourcesAsync(
fingerprintHash: string
): Promise<FingerprintSource[] | null> {
if (!this.db) {
throw new Error('Database not initialized. Call initAsync() first.');
}
+31 -10
View File
@@ -17,7 +17,7 @@ export * from './FingerprintDbManager';
export interface FingerprintOutput {
currentFingerprint: Fingerprint.Fingerprint;
previousFingerprint: Fingerprint.Fingerprint | null;
diff: Fingerprint.FingerprintSource[];
diff: Fingerprint.FingerprintDiffItem[];
}
/**
@@ -27,13 +27,19 @@ export async function createFingerprintOutputAsync(
dbManager: FingerprintDbManager,
input: ReturnType<typeof collectFingerprintActionInput>
): Promise<FingerprintOutput> {
await installFingerprintAsync(input.fingerprintVersion, input.packager, input.fingerprintInstallationCache);
await installFingerprintAsync(
input.fingerprintVersion,
input.packager,
input.fingerprintInstallationCache
);
const fingerprint = require('@expo/fingerprint') as typeof import('@expo/fingerprint');
const currentFingerprint = await fingerprint.createFingerprintAsync(input.workingDirectory);
let previousFingerprint: FingerprintDbEntity | null = null;
if (input.previousGitCommitHash) {
previousFingerprint = await dbManager.getEntityFromGitCommitHashAsync(input.previousGitCommitHash);
previousFingerprint = await dbManager.getEntityFromGitCommitHashAsync(
input.previousGitCommitHash
);
}
const diff =
@@ -61,7 +67,9 @@ export async function createFingerprintDbManagerAsync(
if (cacheHit) {
info(`Restored fingerprint database from cache - cacheKey[${cacheKey}]`);
} else {
info(`Missing fingerprint database from cache - will create a new database - cacheKey[${cacheKey}]`);
info(
`Missing fingerprint database from cache - will create a new database - cacheKey[${cacheKey}]`
);
}
const dbManager = new FingerprintDbManager(dbPath);
await dbManager.initAsync();
@@ -78,14 +86,20 @@ export function collectFingerprintActionInput() {
workingDirectory: getInput('working-directory'),
fingerprintVersion: getInput('fingerprint-version') || 'latest',
fingerprintInstallationCache:
!getInput('fingerprint-installation-cache') || getBooleanInput('fingerprint-installation-cache'),
!getInput('fingerprint-installation-cache') ||
getBooleanInput('fingerprint-installation-cache'),
fingerprintDbCacheKey: getInput('fingerprint-db-cache-key'),
previousGitCommitHash:
githubContext.eventName === 'pull_request'
getInput('previous-git-commit') ||
(githubContext.eventName === 'pull_request'
? githubContext.payload.pull_request?.base?.sha
: githubContext.payload.before,
: githubContext.payload.before),
currentGitCommitHash:
githubContext.eventName === 'pull_request' ? githubContext.payload.pull_request?.head?.sha : githubContext.sha,
getInput('current-git-commit') ||
(githubContext.eventName === 'pull_request'
? githubContext.payload.pull_request?.head?.sha
: githubContext.sha),
savingDbBranch: getInput('saving-db-branch') || undefined,
};
}
@@ -142,8 +156,15 @@ export async function saveDbToCacheAsync(cacheKey: string) {
* Get the path to the fingerprint database
*/
async function getDbPathAsync(): Promise<string> {
assert(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
const result = path.join(process.env['RUNNER_TOOL_CACHE'], 'fingerprint-storage', 'fingerprint.db');
assert(
process.env['RUNNER_TOOL_CACHE'],
'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined'
);
const result = path.join(
process.env['RUNNER_TOOL_CACHE'],
'fingerprint-storage',
'fingerprint.db'
);
const dir = path.dirname(result);
if (!(await fs.promises.stat(dir).catch(() => null))) {
await mkdirP(dir);
+153
View File
@@ -0,0 +1,153 @@
import { info, isDebug } from '@actions/core';
import { getExecOutput } from '@actions/exec';
import { which } from '@actions/io';
import { BuildInfo, BuildStatus, normalizeBuildInfo } from './expo';
export async function getBuildInfoForCurrentFingerprintAsync({
platform,
workingDirectory,
environment,
profile,
isInPullRequest,
}: {
platform: 'ios' | 'android';
profile: string;
workingDirectory: string;
environment: string | null;
isInPullRequest: boolean;
}): Promise<{ buildInfo: BuildInfo | null; fingerprintHash: string }> {
const humanReadablePlatformName = platform === 'ios' ? 'iOS' : 'Android';
const fingerprintHash = await getFingerprintHashForPlatformAsync({
cwd: workingDirectory,
platform,
environment,
});
info(`${humanReadablePlatformName} fingerprint: ${fingerprintHash}`);
info(
`Looking for ${humanReadablePlatformName} builds with matching runtime version (fingerprint)...`
);
return {
buildInfo: await getBuildInfoWithFingerprintAsync({
cwd: workingDirectory,
platform,
profile,
fingerprintHash,
excludeExpiredBuilds: isInPullRequest,
}),
fingerprintHash,
};
}
async function getFingerprintHashForPlatformAsync({
cwd,
platform,
environment,
}: {
cwd: string;
platform: 'ios' | 'android';
environment: string | null;
}): Promise<string> {
let hash: string;
try {
const extraArgs = isDebug() ? ['--debug'] : [];
const baseArguments = [
'expo-updates',
'fingerprint:generate',
'--platform',
platform,
...extraArgs,
];
let commandLine: string;
let args: string[];
if (environment) {
commandLine = await which('eas', true);
const commandToExecute = ['npx', ...baseArguments].join(' ').replace(/"/g, '\\"');
args = ['env:exec', '--non-interactive', environment, `"${commandToExecute}"`];
} else {
commandLine = 'npx';
args = baseArguments;
}
const { stdout } = await getExecOutput(commandLine, args, {
cwd,
silent: !isDebug(),
});
hash = JSON.parse(stdout).hash;
} catch (error: unknown) {
throw new Error(`Error calculating fingerprint: ${String(error)}`, { cause: error });
}
if (!hash || typeof hash !== 'string') {
throw new Error(`Invalid fingerprint hash: ${hash}`);
}
return hash;
}
export async function getBuildInfoWithFingerprintAsync({
cwd,
platform,
profile,
fingerprintHash,
excludeExpiredBuilds,
}: {
cwd: string;
platform: 'ios' | 'android';
profile: string;
fingerprintHash: string;
excludeExpiredBuilds: boolean;
}): Promise<BuildInfo | null> {
let builds: BuildInfo[];
try {
const { stdout } = await getExecOutput(
await which('eas', true),
[
'build:list',
'--platform',
platform,
'--buildProfile',
profile,
'--runtimeVersion',
fingerprintHash,
'--limit',
'1',
'--json',
'--non-interactive',
],
{
cwd,
silent: !isDebug(),
}
);
const parsed = JSON.parse(stdout);
builds = Array.isArray(parsed) ? parsed.map(normalizeBuildInfo) : parsed;
} catch (error: unknown) {
throw new Error(`Error getting EAS builds: ${String(error)}`, { cause: error });
}
if (!builds || !Array.isArray(builds)) {
throw new Error(`Could not get EAS builds for project`);
}
const tomorrow = new Date();
tomorrow.setDate(tomorrow.getDate() + 1);
const buildsThatAreValid = builds.filter(build => {
const isValidStatus = [
BuildStatus.New,
BuildStatus.InQueue,
BuildStatus.InProgress,
BuildStatus.Finished,
].includes(build.status);
// if the build is expired or will expire within the next day,
const isValidExpiry = excludeExpiredBuilds ? new Date(build.expirationDate) > tomorrow : true;
return isValidStatus && isValidExpiry;
});
return buildsThatAreValid[0] ?? null;
}
+25 -7
View File
@@ -1,4 +1,4 @@
import { getOctokit, context } from '@actions/github';
import { context, getOctokit } from '@actions/github';
import { ok as assert } from 'assert';
type IssueContext = (typeof context)['issue'];
@@ -77,7 +77,10 @@ export async function createIssueComment(options: AuthContext & IssueContext & C
*/
export function githubApi(options: AuthContext = {}): ReturnType<typeof getOctokit> {
const token = process.env['GITHUB_TOKEN'] || options.token;
assert(token, `This step requires 'github-token' or a GITHUB_TOKEN environment variable to create comments`);
assert(
token,
`This step requires 'github-token' or a GITHUB_TOKEN environment variable to create comments`
);
return getOctokit(token);
}
@@ -145,7 +148,10 @@ export function issueComment() {
/**
* Get the commit message for a specific commit hash.
*/
export async function getGitCommandMessageAsync(options: AuthContext, gitCommitHash: string): Promise<string> {
export async function getGitCommandMessageAsync(
options: AuthContext,
gitCommitHash: string
): Promise<string> {
const github = githubApi({ token: options.token });
const result = await github.rest.git.getCommit({
...context.repo,
@@ -155,16 +161,28 @@ export async function getGitCommandMessageAsync(options: AuthContext, gitCommitH
}
/**
* True if the current event is a push to the default branch.
* Get the default branch for the repository.
*/
export function isPushDefaultBranchContext() {
return context.eventName === 'push' && context.ref === `refs/heads/${context.payload?.repository?.default_branch}`;
export function getRepoDefaultBranch(): string | undefined {
return context.payload?.repository?.default_branch;
}
/**
* True if the current event is a push to the target branch.
*
* @param targetBranch The branch to compare against.
*/
export function isPushBranchContext(targetBranch: string) {
return context.eventName === 'push' && context.ref === `refs/heads/${targetBranch}`;
}
/**
* Get the pull request information that associated with a specific commit hash.
*/
export async function getPullRequestFromGitCommitShaAsync(options: AuthContext, gitCommitHash: string) {
export async function getPullRequestFromGitCommitShaAsync(
options: AuthContext,
gitCommitHash: string
) {
const github = githubApi({ token: options.token });
const results = await github.rest.repos.listPullRequestsAssociatedWithCommit({
...context.repo,
+14
View File
@@ -0,0 +1,14 @@
import { InputOptions, getInput as getActionInput } from '@actions/core';
export function getInput(name: string, options: { required: true }): string;
export function getInput(name: string): string | null;
export function getInput(name: string, options?: InputOptions): string | null {
const value = getActionInput(name, options);
if (!value) {
if (options?.required) {
throw new Error(`Input ${name} is required.`);
}
return null;
}
return value;
}
+3 -1
View File
@@ -12,7 +12,9 @@ export async function resolvePackage(name: string, range: string): Promise<strin
let stdout = '';
try {
({ stdout } = await getExecOutput('npm', ['info', `${name}@${range}`, 'version', '--json'], { silent: true }));
({ stdout } = await getExecOutput('npm', ['info', `${name}@${range}`, 'version', '--json'], {
silent: true,
}));
} catch (error: unknown) {
throw new Error(`Could not resolve ${name}@${range}`, { cause: error });
}
+21 -3
View File
@@ -1,4 +1,6 @@
import { isDebug } from '@actions/core';
import { getExecOutput } from '@actions/exec';
import { which } from '@actions/io';
import { ExpoConfig } from '@expo/config';
/**
@@ -6,13 +8,29 @@ import { ExpoConfig } from '@expo/config';
* This runs `expo config` command instead of using `@expo/config` directly,
* to use the app's own version of the config.
*/
export async function loadProjectConfig(cwd: string): Promise<ExpoConfig> {
export async function loadProjectConfig(
cwd: string,
easEnvironment: string | null
): Promise<ExpoConfig> {
let stdout = '';
const baseArguments = ['expo', 'config', '--json', '--type', 'public'];
let commandLine: string;
let args: string[];
if (easEnvironment) {
commandLine = await which('eas', true);
const commandToExecute = ['npx', ...baseArguments].join(' ').replace(/"/g, '\\"');
args = ['env:exec', '--non-interactive', easEnvironment, `"${commandToExecute}"`];
} else {
commandLine = 'npx';
args = baseArguments;
}
try {
({ stdout } = await getExecOutput('npx', ['expo', 'config', '--json', '--type', 'public'], {
({ stdout } = await getExecOutput(commandLine, args, {
cwd,
silent: true,
silent: !isDebug(),
}));
} catch (error: unknown) {
throw new Error(`Could not fetch the project info from ${cwd}`, { cause: error });
+32
View File
@@ -9,3 +9,35 @@ export function template(template: string, replacements: Record<string, string>)
}
return result;
}
/**
* Retry an async function a number of times with a delay between each attempt.
*/
export async function retryAsync<T>(
fn: () => Promise<T>,
retries: number,
delayAfterErrorMs: number = 5000
): Promise<T> {
let lastError: Error | undefined;
for (let i = 0; i < retries; ++i) {
try {
return await fn();
} catch (e) {
if (e instanceof Error) {
lastError = e;
await delayAsync(delayAfterErrorMs);
}
}
}
if (lastError) {
throw lastError;
}
throw new Error('retryAsync function did not return a value');
}
/**
* Delay by the given milliseconds.
*/
export async function delayAsync(timeMs: number) {
return new Promise(resolve => setTimeout(resolve, timeMs));
}
+10 -3
View File
@@ -52,8 +52,12 @@ export async function patchWatchers(): Promise<void> {
await exec('sudo sysctl -p');
info('Patched system watchers for the `ENOSPC` error.');
} catch (error) {
warning(`Looks like we can't patch watchers/inotify limits, you might encouter the 'ENOSPC' error.`);
warning('For more info: https://github.com/expo/expo-github-action/issues/20, encountered error:');
warning(
`Looks like we can't patch watchers/inotify limits, you might encouter the 'ENOSPC' error.`
);
warning(
'For more info: https://github.com/expo/expo-github-action/issues/20, encountered error:'
);
warning(String(error));
}
}
@@ -69,7 +73,10 @@ export function tempPath(name: string, version: string): string {
* @see https://github.com/actions/toolkit/blob/daf8bb00606d37ee2431d9b1596b88513dcf9c59/packages/tool-cache/src/tool-cache.ts#L747-L749
*/
export function toolPath(name: string, version: string): string {
assert(process.env['RUNNER_TOOL_CACHE'], 'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined');
assert(
process.env['RUNNER_TOOL_CACHE'],
'Could not resolve the local tool cache, RUNNER_TOOL_CACHE not defined'
);
return path.join(process.env['RUNNER_TOOL_CACHE'], name, version, os.arch());
}
+3 -3
View File
@@ -1,7 +1,8 @@
{
"extends": "@tsconfig/node20",
"extends": "@tsconfig/node24",
"compilerOptions": {
"outDir": "./build",
"strict": true,
"noEmit": true,
"rootDir": "./src",
"module": "CommonJS",
"moduleResolution": "node"
@@ -9,6 +10,5 @@
"exclude": [
"build",
"node_modules",
"tests/**"
]
}