Skip to content

Bump typescript from 5.1.3 to 5.2.2 #2

Bump typescript from 5.1.3 to 5.2.2

Bump typescript from 5.1.3 to 5.2.2 #2

Workflow file for this run

name: Lint
on:
push:
workflow_dispatch:
schedule:
- cron: 00 12 * * * # 1 hour before Dependabot
permissions: write-all
jobs:
bump:
name: Bump dependencies
if: github.ref_name == 'main' && github.repository_owner == 'scratchaddons-community'
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: Bump
id: sync_types
uses: RedGuy12/[email protected]
- name: Commit
id: commit
uses: stefanzweifel/[email protected]
with:
commit_message: Bump dependencies
branch: ${{ github.head_ref }}
- name: Comment
if: steps.commit.outputs.changes_detected == 'true'
run: |
body="$(cat ${{ steps.sync_types.outputs.output-dir }}/changes.md)$(cat ${{ steps.sync_types.outputs.output-dir }}/sync.md)"
gh api "repos/${{ github.repository }}/commits/${{ steps.commit.outputs.commit_hash }}/comments" -F "body=$body"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
format:
name: Format
if: ${{ always() }} && startsWith(github.ref_name, 'dependabot/') != true
runs-on: ubuntu-20.04
needs: bump
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: Setup Node.JS
uses: actions/[email protected]
with:
node-version: "18.12.1"
cache: npm
- name: Install
run: npm ci
- name: Format
run: npm run format
- name: Commit
uses: stefanzweifel/[email protected]
with:
commit_message: Format
branch: ${{ github.head_ref }}
analyze:
name: Analyze
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: Setup CodeQL
uses: github/codeql-action/[email protected]
with:
languages: javascript
queries: security-and-quality
- name: Analyze
uses: github/codeql-action/analyze@v2
build:
name: Build
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/[email protected]
with:
ref: ${{ github.head_ref }}
- name: Setup Node.JS
uses: actions/[email protected]
with:
node-version: "18.12.1"
cache: npm
- name: Install
run: npm ci
- name: Build
run: npm run build