Skip to content

chore: simplify sample #19

chore: simplify sample

chore: simplify sample #19

Workflow file for this run

# Based on https://github.com/actions/starter-workflows/blob/main/ci/node.js.yml
name: CD
on:
push:
branches:
- main
env:
BUGSPLAT_DATABASE: ${{ secrets.BUGSPLAT_DATABASE }}
SYMBOL_UPLOAD_CLIENT_ID: ${{ secrets.SYMBOL_UPLOAD_CLIENT_ID }}
SYMBOL_UPLOAD_CLIENT_SECRET: ${{ secrets.SYMBOL_UPLOAD_CLIENT_SECRET }}
jobs:
cd:
concurrency: ci-${{ github.ref }}
runs-on: ubuntu-latest
steps:
- name: Checkout βœ…
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup πŸ—
uses: actions/setup-node@v4
with:
node-version: lts/*
cache: 'npm'
- name: Install βš™οΈ
run: npm ci
- name: Build πŸ› 
run: npm run build:ci
- name: Test πŸ“‹
run: npm run test:ci
- name: Publish πŸ“’
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: npx semantic-release
- name: Deploy πŸš€
uses: JamesIves/github-pages-deploy-action@v4.2.5
with:
repository-name: BugSplat-Git/bugsplat-git.github.io
branch: gh-pages
folder: dist/my-angular-crasher/browser
target-folder: my-angular-crasher
token: ${{ secrets.GH_TOKEN }}