diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index bcaf7f3..adf4719 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -4,7 +4,7 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled on: # Runs on pushes targeting the default branch push: - branches: ["main"] + branches: ['main'] # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -17,7 +17,7 @@ permissions: # Allow one concurrent deployment concurrency: - group: "pages" + group: 'pages' cancel-in-progress: true jobs: @@ -35,6 +35,7 @@ jobs: run: yarn build env: NODE_ENV: production + SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} - name: Upload artifact uses: actions/upload-pages-artifact@v1 with: diff --git a/package.json b/package.json index 44d5243..9d2fc3d 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ }, "scripts": { "start": "react-scripts start", - "build": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` react-scripts build", + "build": "REACT_APP_GIT_SHA=`git rev-parse --short HEAD` react-scripts build && yarn sentry:sourcemaps", "test": "react-scripts test", "eject": "react-scripts eject", "sentry:sourcemaps": "sentry-cli sourcemaps inject --org nicholas-sorokin --project pandemic-tracker ./build && sentry-cli sourcemaps upload --org nicholas-sorokin --project pandemic-tracker ./build"