docs(updating docs to show how to access nodes): updating docs to sho… #45
This file contains hidden or 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
| name: Build -> Test -> Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - next | |
| - alpha | |
| - beta | |
| - '*.x*' | |
| env: | |
| HUSKY: 0 | |
| GIT_AUTHOR_NAME: kirangadhave | |
| GIT_AUTHOR_EMAIL: kirangadhave2@gmail.com | |
| GIT_COMMITTER_NAME: kirangadhave | |
| GIT_COMMITTER_EMAIL: kirangadhave2@gmail.com | |
| jobs: | |
| release: | |
| name: Build -> Test -> Release | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| token: ${{ secrets.TRRACK_GITHUB_TOKEN }} | |
| - name: Setup LTS Node | |
| uses: actions/setup-node@v3 | |
| with: | |
| node-version: 'lts/*' | |
| cache: 'yarn' | |
| - name: Install yarn | |
| run: npm install -g yarn | |
| - name: Get yarn cache directory path | |
| id: yarn-cache-dir-path | |
| run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
| - name: Cache yarn dependencies | |
| uses: actions/cache@v3 | |
| id: yarn-cache | |
| with: | |
| path: | | |
| ${{ steps.yarn-cache-dir-path.outputs.dir }} | |
| **\node_modules | |
| key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-yarn- | |
| - name: Install dependencies | |
| if: steps.yarn-cache.outputs.cache-hit != 'true' | |
| run: yarn install | |
| - name: Build packages | |
| run: yarn build:packages | |
| - name: Test | |
| run: yarn test:all | |
| - name: Release | |
| if: ${{ success() && (github.event_name != 'pull_request' || github.event.action == 'closed' && github.event.pull_request.merged == true) }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.TRRACK_GITHUB_TOKEN }} | |
| NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
| run: yarn release |