fix: changes redirect uri in callback handler #183
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: CI pipeline | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
env: | |
NODE_VERSION: 16 | |
PACKAGE_MANAGER: 'npm' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: ${{ env.PACKAGE_MANAGER }} | |
- name: Install dependecies | |
run: npm install | |
- run: npm run lint | |
prettier: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: ${{ env.PACKAGE_MANAGER }} | |
- name: Install dependencies | |
run: npm install | |
- run: npm run format:check | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: ${{ env.PACKAGE_MANAGER }} | |
- name: Install dependencies | |
run: npm install | |
- run: npm run test | |
build: | |
runs-on: ubuntu-latest | |
env: | |
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 20 | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: ${{ env.PACKAGE_MANAGER }} | |
- name: Install dependencies | |
run: npm install | |
- name: build | |
run: npm run build | |
- name: Run lighthouse ci | |
run: | | |
npm install -g @lhci/[email protected] | |
lhci autorun --upload.token=${{ secrets.LHCI_BUILD_TOKEN }} --upload.serverBaseUrl=${{ secrets.LHCI_SERVER_BASE_URL}} | |
chromatic: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 # 👈 Required to retrieve git history | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: ${{ env.PACKAGE_MANAGER }} | |
- name: Install dependecies | |
run: npm install | |
- name: Publish to Chromatic | |
uses: chromaui/action@v1 | |
# Chromatic GitHub Action options | |
with: | |
# 👇 Chromatic projectToken, refer to the manage page to obtain it. | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} | |
autoAcceptChanges: 'main' | |
onlyChanged: true | |
buildScriptName: 'storybook:build' |