-
Notifications
You must be signed in to change notification settings - Fork 879
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
75fc558
commit 00b43e1
Showing
15 changed files
with
136 additions
and
143 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,20 @@ | ||
name: Setup | ||
description: Checkout and Install dependencies with cache on the project under template/ | ||
inputs: | ||
working_directory: | ||
description: 'The directory where the install command will be run' | ||
required: true | ||
type: string | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
cache: 'yarn' | ||
cache-dependency-path: ${{ inputs.working_directory }}/yarn.lock | ||
- name: Install dependencies | ||
run: yarn install --frozen-lockfile | ||
shell: bash | ||
working-directory: ${{ inputs.working_directory }} |
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,34 @@ | ||
name: Boilerplate => Eslint, Prettier and Jest tests | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- template/**/* | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint_type_test: | ||
name: Run eslint, prettier, type check and jest tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/deps-setup | ||
with: | ||
working_directory: ./template | ||
- name: Run Eslint | ||
run: yarn lint | ||
working-directory: ./template | ||
- name: Run Typescript check | ||
run: yarn type-check | ||
working-directory: ./template | ||
- name: Run Jest tests | ||
run: yarn test | ||
working-directory: ./template |
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,32 @@ | ||
name: Release new boilerplate version | ||
|
||
on: | ||
release: | ||
types: [published] | ||
|
||
jobs: | ||
publish: | ||
if: "!github.event.release.prerelease" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.release.target_commitish }} | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM }} | ||
- run: | | ||
git config --global user.name "ReactNativeBoilerplate Bot" | ||
git config --global user.email "[email protected]" | ||
npm --no-git-tag-version version ${{ github.event.release.name }} | ||
- name: Commit and push | ||
run: | | ||
git add . | ||
git commit -am "bump(version): tag boilerplate to version ${{ github.event.release.name }}" | ||
git push | ||
env: | ||
github-token: ${{ secrets.GITHUB }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,40 @@ | ||
name: Documentation => EsLint, Typescript check and build | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- documentation/**/* | ||
- template/theme/**/* | ||
- template/package.json | ||
- template/yarn.lock | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
lint_type_build: | ||
name: Run eslint, prettier, type check and build tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- uses: ./.github/actions/deps-setup | ||
with: | ||
working_directory: ./documentation | ||
- name: Run Eslint | ||
run: yarn lint | ||
working-directory: ./documentation | ||
- name: Run Typescript check | ||
run: yarn type-check | ||
working-directory: ./documentation | ||
- name: Remove previous build | ||
run: rm -rf .docusaurus/ | ||
working-directory: ./documentation | ||
- name: Build documentation | ||
run: yarn build | ||
working-directory: ./documentation |
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 was deleted.
Oops, something went wrong.
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
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 +1,2 @@ | ||
API_URL: https://jsonplaceholder.typicode.com | ||
|