-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #171 from iamdevlinph/v4-publish
Additional changes before finalizing v4
- Loading branch information
Showing
32 changed files
with
2,278 additions
and
2,789 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
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 |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Running deployment of documentation to gh-pages | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
setup: | ||
name: Setup environment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Installing node.js | ||
uses: actions/setup-node@v1 # Used to install node environment | ||
with: | ||
node-version: '10.x' | ||
|
||
run-documentation: | ||
name: Run documentation | ||
runs-on: ubuntu-latest | ||
needs: setup # Need to wait for setup | ||
steps: | ||
- uses: actions/checkout@v1 # Get last commit pushed | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run documentation create | ||
run: yarn docu:create | ||
|
||
- name: Deploy 🚀 | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
folder: docs # The folder the action should deploy. |
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,43 @@ | ||
name: Running lint checks and build | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'main' | ||
|
||
jobs: | ||
setup: | ||
name: Setup environment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Installing node.js | ||
uses: actions/setup-node@v1 # Used to install node environment | ||
with: | ||
node-version: '10.x' | ||
|
||
format-check: | ||
name: Check code format and build app | ||
runs-on: ubuntu-latest | ||
needs: setup # Need to wait for setup | ||
steps: | ||
- uses: actions/checkout@v1 # Get last commit pushed | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run linter | ||
run: yarn format:check | ||
|
||
- name: Build the app | ||
run: yarn build |
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,44 @@ | ||
name: Running publish package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
setup: | ||
name: Setup environment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Installing node.js | ||
uses: actions/setup-node@v1 # Used to install node environment | ||
with: | ||
node-version: '10.x' | ||
|
||
publish-package: | ||
name: Run publish package | ||
runs-on: ubuntu-latest | ||
needs: setup # Need to wait for setup | ||
steps: | ||
- uses: actions/checkout@v1 # Get last commit pushed | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Build the app | ||
run: yarn build | ||
|
||
- name: Publish the package | ||
run: npm publish | ||
env: | ||
NODE_AUTH_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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Running code tests | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'main' | ||
|
||
jobs: | ||
setup: | ||
name: Setup environment | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Installing node.js | ||
uses: actions/setup-node@v1 # Used to install node environment | ||
with: | ||
node-version: '10.x' | ||
|
||
run-tests: | ||
name: Run code tests | ||
runs-on: ubuntu-latest | ||
needs: setup # Need to wait for setup | ||
steps: | ||
- uses: actions/checkout@v1 # Get last commit pushed | ||
|
||
- name: Get yarn cache | ||
id: yarn-cache | ||
run: echo "::set-output name=dir::$(yarn cache dir)" | ||
|
||
- uses: actions/cache@v1 | ||
with: | ||
path: ${{ steps.yarn-cache.outputs.dir }} | ||
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-yarn- | ||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Run tests | ||
run: yarn test:ci |
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
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.