Skip to content

Commit

Permalink
deps: Update sdk to 9.0.0-alpha.0 (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
lforst authored Jan 24, 2025
1 parent af1d7a4 commit 864b67a
Show file tree
Hide file tree
Showing 13 changed files with 21,372 additions and 11,876 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ jobs:
runs-on: 'ubuntu-latest'
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Node
uses: actions/setup-node@v4
with:
node-version-file: 'package.json'
- run: make test

deploy:
Expand Down Expand Up @@ -47,7 +51,6 @@ jobs:
GCLOUD_DATA_BUCKET: ${{ secrets.GCLOUD_DATA_BUCKET }}
GCLOUD_PROJECT: ${{ secrets.GCLOUD_PROJECT }}
GCLOUD_WWW_BUCKET: ${{ secrets.GCLOUD_WWW_BUCKET }}
REACT_APP_SENTRY_DSN: ${{ vars.REACT_APP_SENTRY_DSN }}
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_CLIENT_PROJECT: ${{ secrets.SENTRY_CLIENT_PROJECT }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}
Expand Down
21 changes: 8 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ _A re-write of [sourcemap-validator](https://github.com/mattrobenolt/sourcemap-v

[sourcemaps.io](http://v2.sourcemaps.io) is a web application that takes a URL for a target transpiled/minified JavaScript file (e.g. `https://example.com/js/app.min.js`), and verifies:

* `sourceMappingURL` or `[X-]SourceMap` header is present
* Both the transpiled/minified file and source map file are reachable via HTTP
* The resolved source map is valid JSON, and parses using Mozilla's [source-map](https://github.com/mozilla/source-map) library
* Lines and columns line up as expected
* ... and more, see [tests](/tests)
- `sourceMappingURL` or `[X-]SourceMap` header is present
- Both the transpiled/minified file and source map file are reachable via HTTP
- The resolved source map is valid JSON, and parses using Mozilla's [source-map](https://github.com/mozilla/source-map) library
- Lines and columns line up as expected
- ... and more, see [tests](/tests)

## Development

Expand Down Expand Up @@ -51,13 +51,12 @@ This repository is already configured to automatically deploy to https://sourcem
1. Create a new project in [Google Cloud Platform](https://cloud.google.com/), e.g. `myproject`
2. Enable Cloud Functions
3. Create **3 buckets** in Cloud Storage, for:
1. staging the **cloud function** (e.g. `myproject-server`)
1. storing **report data** (e.g. `myproject-reports`)
1. storing **static web content** (e.g. `myproject-web`)
1. staging the **cloud function** (e.g. `myproject-server`)
1. storing **report data** (e.g. `myproject-reports`)
1. storing **static web content** (e.g. `myproject-web`)

NOTE: Your deployed cloud function must be configured to use [Cloud Functions Node 10 runtime](https://cloud.google.com/functions/docs/concepts/nodejs-10-runtime) (or newer).


### Install the gcloud CLI

Follow Google Cloud's instructions for [installing the gcloud CLI](https://cloud.google.com/sdk/docs/install).
Expand All @@ -80,10 +79,6 @@ export GCLOUD_DATA_BUCKET=myproject-reports
export GCLOUD_WWW_BUCKET=myproject-web
export GCLOUD_SERVICE_KEY=<base64 encoded service-key json object>

# Used for reporting errors back to your sentry instance:
export REACT_APP_SENTRY_DSN=https://[email protected]/1
export SENTRY_DSN=https://[email protected]/1

# Used for creating a new release in your sentry instance:
export SENTRY_AUTH_TOKEN=sntrys_abcxyz
export SENTRY_CLIENT_PROJECT=MY-PROJECT
Expand Down
Loading

0 comments on commit 864b67a

Please sign in to comment.