Update dependency zone.js to ~0.15.0 (#281) #138
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
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 |