-
Notifications
You must be signed in to change notification settings - Fork 4
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
27 changed files
with
21,726 additions
and
276 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 |
---|---|---|
|
@@ -11,7 +11,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v1 | ||
uses: actions/checkout@v2 | ||
|
||
- name: Check the package.json of /core to see if it has changed | ||
uses: EndBug/[email protected] | ||
|
@@ -32,31 +32,43 @@ jobs: | |
with: | ||
node-version: 12.x | ||
registry-url: https://npm.pkg.github.com/ | ||
scope: "@birdiecare" | ||
scope: '@birdiecare' | ||
|
||
- name: Install common dependencies | ||
run: yarn install | ||
run: | | ||
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc | ||
env: | ||
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} | ||
NODE_ENV: development | ||
|
||
- name: Build core | ||
working-directory: core | ||
run: | | ||
cd core | ||
yarn install | ||
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc | ||
npm ci | ||
npm run build | ||
env: | ||
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} | ||
NODE_ENV: development | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Deploy core | ||
if: steps.core-version-change.outputs.changed == 'true' | ||
working-directory: core | ||
run: | | ||
cd core | ||
npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Build and deploy native | ||
if: steps.native-version-change.outputs.changed == 'true' | ||
working-directory: native | ||
run: | | ||
cd native | ||
yarn install | ||
echo "//npm.pkg.github.com/:_authToken=$NPM_REGISTRY_TOKEN" >> .npmrc | ||
npm ci | ||
npm run build | ||
npm publish | ||
env: | ||
NPM_REGISTRY_TOKEN: ${{ secrets.NPM_REGISTRY_TOKEN }} | ||
NODE_ENV: development | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_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
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,4 +1,3 @@ | ||
node_modules/ | ||
dist/ | ||
package-lock.json | ||
yarn.lock | ||
.jest/ |
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 @@ | ||
registry=https://registry.npmjs.org/ | ||
@birdiecare:registry=https://npm.pkg.github.com/ |
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 |
---|---|---|
|
@@ -6,24 +6,27 @@ The best option is to install Galette on your project(s) and symlink the project | |
a local clone of the Galette Git repository. | ||
|
||
1. Clone Galette. | ||
|
||
``` | ||
git clone [email protected]:kametventures/galette.git | ||
``` | ||
|
||
2. Go on your project's directory. (We assume Galette is already a dependency) | ||
|
||
``` | ||
cd node_modules/@birdiecare/galette | ||
rm -rf core && ln -s /path/to/galette/git/core core | ||
``` | ||
|
||
**Important:** replace `/path/to/galette/git` in the example above with the path on your own machine. | ||
|
||
3. Start Galette's watcher so that your updates in the `core/src` directory are compiled and available for your | ||
project. | ||
|
||
``` | ||
cd /path/to/galette/git/core | ||
yarn install | ||
yarn run build --watch | ||
npm install | ||
npm run build --watch | ||
``` |
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.