-
Notifications
You must be signed in to change notification settings - Fork 11
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
1 parent
000e826
commit 414ae0c
Showing
282 changed files
with
18,597 additions
and
31,309 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -4,4 +4,6 @@ build/ | |
docs/ | ||
assets/ | ||
ios/ | ||
android/ | ||
android/ | ||
expo-env.d.ts | ||
.expo |
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 was deleted.
Oops, something went wrong.
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,16 @@ | ||
name: Cache npm packages | ||
description: Caches ~/.npm folder | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Cache node modules | ||
uses: actions/cache@v3 | ||
env: | ||
cache-name: node_modules | ||
with: | ||
path: ~/.npm | ||
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }} | ||
restore-keys: | | ||
${{ runner.os }}-build-${{ env.cache-name }}- | ||
${{ runner.os }}-build- | ||
${{ runner.os }}- |
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 |
---|---|---|
|
@@ -14,25 +14,20 @@ env: | |
|
||
jobs: | ||
checks: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
command: ['lint', 'test -- --ci --forceExit', 'types'] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
|
||
- uses: actions/checkout@v4 | ||
- uses: jdx/mise-action@v2 | ||
- uses: ./.github/actions/cache-node | ||
- run: npm ci | ||
|
||
- run: npm run ${{ matrix.command }} | ||
|
||
prepare: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
needs: checks | ||
outputs: | ||
release-version: ${{ steps.bump-version.outputs.next }} | ||
|
@@ -41,23 +36,18 @@ jobs: | |
with: | ||
user: Shabad OS Bot | ||
email: [email protected] | ||
|
||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
||
- uses: shabados/actions/bump-version@release/v2 | ||
id: bump-version | ||
with: | ||
prerelease: true | ||
|
||
- uses: shabados/actions/generate-changelog@release/v2 | ||
|
||
# .tar to preserve permissions - https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
- name: Create tar workspace archive to preserve file permissions | ||
run: tar -cvf /tmp/workspace.tar . | ||
|
||
- name: Upload workspace | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
|
@@ -85,50 +75,35 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
include: | ||
- os: macos-11 | ||
- os: macos-latest | ||
platform: ios | ||
- os: ubuntu-22.04 | ||
- os: ubuntu-latest | ||
platform: android | ||
steps: | ||
- name: Download workspace | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: release-workspace | ||
|
||
# .tar to preserve permissions - https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
- name: Extract tar workspace archive to preserve file permissions | ||
run: tar -xvf workspace.tar | ||
|
||
- uses: Homebrew/actions/setup-homebrew@master | ||
|
||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: 16 | ||
cache: npm | ||
|
||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
bundler-cache: true | ||
|
||
- uses: jdx/mise-action@v2 | ||
- uses: ./.github/actions/cache-node | ||
- run: brew bundle | ||
|
||
- uses: actions/cache@v2 | ||
- uses: actions/cache@v4 | ||
with: | ||
path: ios/Pods | ||
key: ${{ runner.os }}-pods-${{ hashFiles('**/Podfile.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-pods- | ||
- run: npm ci | ||
|
||
- run: npm run prepare-release:${{ matrix.platform }} -- app_env:next is_next_release:true | ||
|
||
- run: npm run build:${{ matrix.platform }} -- app_env:next is_release:true is_next_release:true | ||
|
||
- run: npm run release:${{ matrix.platform }} -- app_env:next is_next_release:true | ||
|
||
publish-sentry: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
needs: [prepare, build-release] | ||
env: | ||
SENTRY_PROJECT: ${{ matrix.platform }}-app | ||
|
@@ -139,29 +114,26 @@ jobs: | |
- platform: ios | ||
- platform: android | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.GH_BOT_TOKEN }} | ||
|
||
- uses: getsentry/action-release@v1 | ||
with: | ||
environment: next | ||
version: ${{ env.SENTRY_PROJECT }}@${{ needs.prepare.outputs.release-version }} | ||
|
||
publish-github: | ||
runs-on: ubuntu-20.04 | ||
runs-on: ubuntu-latest | ||
needs: [prepare, build-release] | ||
steps: | ||
- name: Download workspace | ||
uses: actions/download-artifact@v2 | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: release-workspace | ||
|
||
# .tar to preserve permissions - https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files | ||
- name: Extract tar workspace archive to preserve file permissions | ||
run: tar -xvf workspace.tar | ||
|
||
- uses: shabados/actions/publish-github@release/v2 | ||
with: | ||
github_token: ${{ secrets.GH_BOT_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 |
---|---|---|
@@ -1,77 +1,51 @@ | ||
# OSX | ||
# | ||
.DS_Store | ||
|
||
# Xcode | ||
# | ||
build/ | ||
*.pbxuser | ||
!default.pbxuser | ||
*.mode1v3 | ||
!default.mode1v3 | ||
*.mode2v3 | ||
!default.mode2v3 | ||
*.perspectivev3 | ||
!default.perspectivev3 | ||
xcuserdata | ||
*.xccheckout | ||
*.moved-aside | ||
DerivedData | ||
*.hmap | ||
*.ipa | ||
*.xcuserstate | ||
project.xcworkspace | ||
|
||
# Android/IntelliJ | ||
# | ||
build/ | ||
.idea | ||
.gradle | ||
local.properties | ||
*.iml | ||
|
||
# Visual Studio Code | ||
# | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/extensions.json | ||
|
||
# node.js | ||
# | ||
# dependencies | ||
node_modules/ | ||
npm-debug.log | ||
yarn-error.log | ||
|
||
# BUCK | ||
buck-out/ | ||
\.buckd/ | ||
*.keystore | ||
!debug.keystore | ||
|
||
# fastlane | ||
# | ||
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the | ||
# screenshots whenever they are needed. | ||
# For more information about the recommended setup visit: | ||
# https://docs.fastlane.tools/best-practices/source-control/ | ||
|
||
fastlane/report.xml | ||
fastlane/Preview.html | ||
fastlane/screenshots | ||
# Expo | ||
.expo/ | ||
dist/ | ||
web-build/ | ||
ios | ||
android | ||
|
||
# Native | ||
*.orig.* | ||
*.jks | ||
*.p8 | ||
*.p12 | ||
*.key | ||
*.mobileprovision | ||
|
||
# Metro | ||
.metro-health-check* | ||
|
||
# debug | ||
npm-debug.* | ||
yarn-debug.* | ||
yarn-error.* | ||
|
||
# macOS | ||
.DS_Store | ||
*.pem | ||
|
||
# Bundle artifact | ||
*.jsbundle | ||
# local env files | ||
.env*.local | ||
|
||
# CocoaPods | ||
/ios/Pods/ | ||
# typescript | ||
*.tsbuildinfo | ||
|
||
# Coverage reports | ||
coverage | ||
*.lcov | ||
# @generated expo-cli sync-2b81b286409207a5da26e14c78851eb30d8ccbdb | ||
# The following patterns were generated by expo-cli | ||
|
||
# Generated icons | ||
AppIcon.appiconset | ||
ic_launcher*.png | ||
expo-env.d.ts | ||
# @end expo-cli | ||
|
||
# Ruby | ||
/.bundle/ | ||
/vendor/bundle | ||
|
||
# Tests | ||
coverage/ | ||
|
||
# Local config files | ||
config/environment/config.local.ts |
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 @@ | ||
npx --no -- commitlint --edit $1 |
Oops, something went wrong.