diff --git a/.github/workflows/pr-main-tag.yml b/.github/workflows/pr-main-tag.yml index bbcecb0b8..ec3c31895 100644 --- a/.github/workflows/pr-main-tag.yml +++ b/.github/workflows/pr-main-tag.yml @@ -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 npm@8.19.1 - 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] diff --git a/Makefile b/Makefile index 6d3cbe4b7..a8b648087 100644 --- a/Makefile +++ b/Makefile @@ -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 # # ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ diff --git a/package.json b/package.json index 3b237dbe3..978e57f87 100644 --- a/package.json +++ b/package.json @@ -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",