Skip to content

Bump ws from 8.12.0 to 8.17.1 #233

Bump ws from 8.12.0 to 8.17.1

Bump ws from 8.12.0 to 8.17.1 #233

Workflow file for this run

name: CI
on:
pull_request: null
push:
branches:
- "main"
concurrency:
group: "ci-${{ github.ref }}"
cancel-in-progress: true
jobs:
lint:
if: github.event_name == 'pull_request'
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install dependencies
run: npm ci
- name: ESLint
run: npm run eslint
- name: StyleLint
if: ${{ always() }}
run: npm run stylelint
- name: Typecheck (tsc)
if: ${{ always() }}
run: npm run tsc
test:
if: github.event_name == 'pull_request'
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Run tests
run: npm run test
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Set Sentry Release (PR)
if: ${{ github.event_name == 'pull_request' }}
run: echo "SENTRY_RELEASE=${{ github.event.pull_request.head.sha }}" >> ${GITHUB_ENV}
- name: Setup Sentry Release (Push)
if: ${{ github.event_name == 'push' }}
run: echo "SENTRY_RELEASE=${GITHUB_SHA}" >> ${GITHUB_ENV}
- name: Build
run: env NODE_ENV=production npm run build -- --public-url "https://mozilla.github.io/limelight/"
env:
SENTRY_DSN: "https://[email protected]/4504371030327296"
- name: Upload Artifact
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v1
with:
path: "dist"
deploy:
name: Deploy
if: github.event_name == 'push'
needs:
- "build"
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1
id: deployment