fix(Login): update link for access tokens #522
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
name: Validate | |
on: | |
push: | |
branches: | |
- "**" # all branches | |
- "!main" | |
pull_request: | |
branches: | |
- main | |
jobs: | |
typecheck: | |
name: Typecheck | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://npm.pkg.github.com | |
- name: NPM Install | |
run: npm ci --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GWM_GH_TOKEN}} | |
- name: Build | |
run: npm run build | |
- name: Check types... | |
run: npm run typecheck | |
format: | |
name: Format | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: https://npm.pkg.github.com | |
- name: NPM Install | |
run: npm ci --ignore-scripts | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GWM_GH_TOKEN}} | |
- name: Format... | |
run: npm run format | |
- name: Commit and push changes (if any) | |
uses: stefanzweifel/[email protected] | |
id: auto_commit_action | |
with: | |
commit_user_name: seambot | |
commit_user_email: [email protected] | |
commit_author: Seam Bot <[email protected]> | |
commit_message: ci - format code | |
- name: Success | |
if: steps.auto_commit_action.outputs.changes_detected == 'false' | |
run: echo "Format check... PASS!" | |
- name: Fail | |
if: steps.auto_commit_action.outputs.changes_detected == 'true' | |
run: echo "Fixed formatting, and pushed changes" && exit 1 |