Errors when purchasing products are now displayed on shoppingcartcomp… #191
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: [ dev ] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
environment: Staging | |
name: Publish to Cloudflare Pages - Staging | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Use Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '18.x' | |
- name: Download Sentry CLI | |
run: curl -sL https://sentry.io/get-cli/ | bash | |
- name: Install dependencies | |
run: npm install | |
- name: Build | |
run: npm run build-revision-file && npm run build:staging | |
- name: Inject debug ID's | |
run: sentry-cli sourcemaps inject dist/ingeniumuahubfront/browser | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ vars.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
- name: Upload sourcemaps to Sentry | |
run: sentry-cli sourcemaps upload --release ${{ github.sha }} dist/ingeniumuahubfront/browser | |
env: | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
SENTRY_ORG: ${{ vars.SENTRY_ORG }} | |
SENTRY_PROJECT: ${{ secrets.SENTRY_PROJECT }} | |
- name: Remove source maps | |
run: rm -f dist/ingeniumuahubfront/browser/*.map | |
- name: Copy 3rdpartylicenses.txt to browser folder | |
run: cp dist/ingeniumuahubfront/3rdpartylicenses.txt dist/ingeniumuahubfront/browser | |
- name: Publish to Cloudflare Pages | |
uses: cloudflare/pages-action@v1 | |
with: | |
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | |
accountId: ${{ vars.CLOUDFLARE_ACCOUNT_ID }} | |
projectName: ${{ vars.CLOUDFLARE_PROJECT_NAME }} | |
directory: dist/ingeniumuahubfront/browser | |
branch: main | |
wranglerVersion: '3' |