Skip to content

Commit

Permalink
ci :: sentry install npm use (test);
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Oct 15, 2023
1 parent 9583adf commit 5150f47
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/pr-main-tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -309,21 +309,19 @@ jobs:
- uses: actions/checkout@v3
with:
ref: main
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- uses: actions/setup-node@v3
with:
node-version: 16.17.0
- name: 'setup npm version'
- name: '🏗️ Set npm version'
run: |
npm install -g [email protected]
- name: 'create .env'
run: |
echo ${{ secrets.ENV_FILE }} | base64 -d > .env
- name: 'sentry upload sourcemap'
- name: '🟩 Build npm'
run: |
npm install
make sentry-sourcemaps-upload
npm run build-2
# -----------------------
# NOTE: [STASHED]
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ sentry-sourcemaps-upload:
$(END_COLOUR)\n"
@VITE_SCORES_PKG_VERSION="v.$(shell npm pkg get version --workspaces=false | tr -d \")" \
VITE_SENTRY_UPLOAD_SOURCEMAPS="true" \
vite build
npm run build
#

# ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"start": "node build/index.js",
"build": "VITE_SCORES_PKG_VERSION=v.$(npm pkg get version --workspaces=false | tr -d \\\") vite build",
"build-2": "VITE_SCORES_PKG_VERSION=v.$(npm pkg get version --workspaces=false | tr -d \\\") VITE_SENTRY_UPLOAD_SOURCEMAPS=true vite build",
"test": "npm run test:integration && npm run test:unit",
"svelte-check": "svelte-check --tsconfig ./tsconfig.json",
"svelte-check::watch": "svelte-check --tsconfig ./tsconfig.json --watch",
Expand Down

0 comments on commit 5150f47

Please sign in to comment.