Skip to content

Update dependency zone.js to ~0.15.0 (#281) #138

Update dependency zone.js to ~0.15.0 (#281)

Update dependency zone.js to ~0.15.0 (#281) #138

Workflow file for this run

name: Build and Deploy (Production)
on:
push:
branches:
- main
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
- name: Setup Node.js πŸ“¦
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies πŸ”§
run: npm ci --include=dev
- name: Build code 🚚
run: npm run build
- name: Release front-end 🎒
run: |
sed -i -e 's/%COMMIT_SHA%/'"${GITHUB_SHA::7}"'/g' packages/ide/src/app/tab-start/tab-start.component.html
export DATE_NOW_FORMATTED=$(date +'%d/%m/%Y %I:%M:%S %p %Z')
sed -i -e 's*%DATE%*'"${DATE_NOW_FORMATTED}"'*g' packages/ide/src/app/tab-start/tab-start.component.html
sed -i -e 's/%SENTRY_RELEASE%/'"${GITHUB_SHA}"'/g' packages/ide/src/main.ts
npm run release
./packages/ide/cleanup-icons.sh
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: packages/ide/dist/browser
- name: Create Sentry release πŸ“¦
uses: getsentry/action-release@v1
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: ${{ vars.SENTRY_ORG }}
SENTRY_PROJECT: ${{ vars.SENTRY_PROJECT }}
with:
environment: production
sourcemaps: packages/ide/dist/browser