-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
17,308 additions
and
10,693 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
--- | ||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
- .github/**/* | ||
- .gitignore | ||
- .npmrc | ||
- .yarnrc | ||
- package.json | ||
- scripts/**/* | ||
'feature: cli': | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,22 +18,24 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache /.yarn-offline-mirror | ||
- name: Cache /.npm | ||
uses: actions/[email protected] | ||
with: | ||
path: .yarn-offline-mirror | ||
key: ${{ hashFiles('yarn.lock') }} | ||
path: .npm | ||
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
- name: Configure npm cache | ||
run: npm config --location project set cache=.npm | ||
- name: Install package dependencies | ||
run: yarn ci | ||
run: npm ci | ||
- name: Build and test packages | ||
run: yarn build:ci | ||
run: npm run build:ci | ||
- name: Bundle packages | ||
run: yarn bundle:ci | ||
run: npm run bundle:ci | ||
- name: Create release PR or publish to npm | ||
uses: changesets/action@v1 | ||
with: | ||
publish: yarn publish:changesets | ||
version: yarn version:changesets | ||
publish: npm run publish:changesets | ||
version: npm run version:changesets | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,39 +14,37 @@ jobs: | |
with: | ||
fetch-depth: 0 | ||
- name: Ensure rnx-kit packages come from our repository | ||
run: | | ||
if grep rnx-kit yarn.lock; then | ||
exit 1 | ||
fi | ||
run: node scripts/validate-package-lock.mjs | ||
- name: Deduplicate packages | ||
run: | | ||
npx yarn-deduplicate --list --fail | ||
- name: Cache /.yarn-offline-mirror | ||
run: npm find-dupes --no-audit --no-fund | ||
- name: Cache /.npm | ||
uses: actions/[email protected] | ||
with: | ||
path: .yarn-offline-mirror | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-5 | ||
path: .npm | ||
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
- name: Configure npm cache | ||
run: npm config --location project set cache=.npm | ||
- name: Install package dependencies | ||
run: yarn ci | ||
run: npm ci | ||
env: | ||
CI_SKIP_GO: 1 | ||
- name: Check for change files | ||
run: yarn change:check --since origin/${{ github.base_ref }} | ||
run: npm run change:check --since origin/${{ github.base_ref }} | ||
- name: Format | ||
run: yarn format | ||
run: npm run format | ||
- name: Report formatting changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git diff | yarn suggestion-bot -m 'Code formatting differences were found – did you forget to run `yarn format`?' | ||
git diff | npm run suggestion-bot -m 'Code formatting differences were found – did you forget to run `npm run format`?' | ||
git checkout . | ||
- name: Align dependencies | ||
run: yarn rnx-dep-check --write | ||
run: npm run rnx-dep-check --write | ||
- name: Report dep-check changes | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
git diff | yarn suggestion-bot -m 'Dependencies are potentially misaligned – run `yarn rnx-dep-check` locally for more details' | ||
git diff | npm run suggestion-bot -m 'Dependencies are potentially misaligned – run `npm run rnx-dep-check` locally for more details' | ||
git checkout . | ||
build: | ||
name: "Build" | ||
|
@@ -67,27 +65,29 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache /.yarn-offline-mirror | ||
- name: Cache /.npm | ||
uses: actions/[email protected] | ||
with: | ||
path: .yarn-offline-mirror | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-5 | ||
path: .npm | ||
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
- name: Configure npm cache | ||
run: npm config --location project set cache=.npm | ||
- name: Install package dependencies | ||
run: yarn ci | ||
run: npm ci | ||
- name: Build and test packages | ||
run: yarn build:ci | ||
run: npm run build:ci | ||
- name: Ensure READMEs are up-to-date | ||
if: ${{ matrix.node-version == 14 && matrix.os == 'ubuntu-latest' }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
yarn update-readme | ||
git diff | yarn suggestion-bot -m 'Changes were found in READMEs – did you forget to run `yarn update-readme`?' | ||
npm run update-readme | ||
git diff | npm run suggestion-bot -m 'Changes were found in READMEs – did you forget to run `npm run update-readme`?' | ||
- name: Bundle packages | ||
run: yarn bundle:ci | ||
run: npm run bundle:ci | ||
- name: Bundle test app with esbuild | ||
run: | | ||
yarn bundle+esbuild | ||
npm run bundle+esbuild | ||
shell: bash | ||
working-directory: packages/test-app | ||
build-android: | ||
|
@@ -107,13 +107,15 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache /.yarn-offline-mirror | ||
- name: Cache /.npm | ||
uses: actions/[email protected] | ||
with: | ||
path: .yarn-offline-mirror | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-5 | ||
path: .npm | ||
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
- name: Configure npm cache | ||
run: npm config --location project set cache=.npm | ||
- name: Install npm dependencies | ||
run: yarn ci | ||
run: npm ci | ||
env: | ||
CI_SKIP_GO: 1 | ||
- name: Build Android app | ||
|
@@ -132,13 +134,15 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- name: Cache /.yarn-offline-mirror | ||
- name: Cache /.npm | ||
uses: actions/[email protected] | ||
with: | ||
path: .yarn-offline-mirror | ||
key: ${{ runner.os }}-${{ hashFiles('yarn.lock') }}-5 | ||
path: .npm | ||
key: ${{ runner.os }}-${{ hashFiles('package-lock.json') }} | ||
- name: Configure npm cache | ||
run: npm config --location project set cache=.npm | ||
- name: Install npm dependencies | ||
run: yarn ci | ||
run: npm ci | ||
env: | ||
CI_SKIP_GO: 1 | ||
- name: Install Pods | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
shared-workspace-shrinkwrap = true | ||
link-workspace-packages = true | ||
ignore-scripts=true | ||
lockfile-version=3 | ||
prefer-dedupe=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.