mirror of
				https://github.com/jakejarvis/jarv.is.git
				synced 2025-11-04 10:30:11 -05:00 
			
		
		
		
	switch back to JS for serverless functions (for now) (#549)
Vercel's TS transpiliation is too flaky: https://github.com/vercel/vercel/discussions/6665
This commit is contained in:
		
							
								
								
									
										9
									
								
								.github/workflows/post-deploy.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										9
									
								
								.github/workflows/post-deploy.yml
									
									
									
									
										vendored
									
									
								
							@@ -19,10 +19,6 @@ jobs:
 | 
			
		||||
      with:
 | 
			
		||||
        node-version: 14.x
 | 
			
		||||
    - run: yarn install --frozen-lockfile
 | 
			
		||||
    # https://docs.sentry.io/platforms/node/typescript/#configuring-typescript-compiler
 | 
			
		||||
    - run: |
 | 
			
		||||
        npx -p typescript tsc
 | 
			
		||||
        ls -lah ./api
 | 
			
		||||
    - uses: getsentry/action-release@v1
 | 
			
		||||
      if: github.event.deployment_status.environment == 'production'
 | 
			
		||||
      env:
 | 
			
		||||
@@ -31,7 +27,6 @@ jobs:
 | 
			
		||||
        SENTRY_PROJECT: jarvis
 | 
			
		||||
      with:
 | 
			
		||||
        environment: ${{ github.event.deployment_status.environment }}
 | 
			
		||||
        sourcemaps: ./api
 | 
			
		||||
    - uses: browser-actions/setup-chrome@latest
 | 
			
		||||
      with:
 | 
			
		||||
        chrome-version: stable
 | 
			
		||||
@@ -46,14 +41,16 @@ jobs:
 | 
			
		||||
    - if: github.event.deployment_status.environment == 'production'
 | 
			
		||||
      run: |
 | 
			
		||||
        echo "BASE_DEPLOY_URL=https://jarv.is" >> $GITHUB_ENV
 | 
			
		||||
        echo "LHCI_EXTRA_FLAGS=" >> $GITHUB_ENV
 | 
			
		||||
        echo "LHCI_BUILD_CONTEXT__CURRENT_BRANCH=main" >> $GITHUB_ENV
 | 
			
		||||
    - if: github.event.deployment_status.environment == 'preview'
 | 
			
		||||
      run: |
 | 
			
		||||
        echo "BASE_DEPLOY_URL=${{ github.event.deployment_status.target_url }}" >> $GITHUB_ENV
 | 
			
		||||
        echo "LHCI_EXTRA_FLAGS=--assert.assertions.is-crawlable=off --assert.assertions.canonical=off" >> $GITHUB_ENV
 | 
			
		||||
        echo "LHCI_BUILD_CONTEXT__CURRENT_BRANCH=${{ github.event.deployment.ref }}" >> $GITHUB_ENV
 | 
			
		||||
    - continue-on-error: true
 | 
			
		||||
      run: |
 | 
			
		||||
        lhci autorun \
 | 
			
		||||
        lhci autorun ${{ env.LHCI_EXTRA_FLAGS }} \
 | 
			
		||||
          --collect.url=${{ env.BASE_DEPLOY_URL }}/ \
 | 
			
		||||
          --collect.url=${{ env.BASE_DEPLOY_URL }}/notes/how-to-pull-request-fork-github/ \
 | 
			
		||||
          --collect.url=${{ env.BASE_DEPLOY_URL }}/projects/
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user