Skip to content

Bump typescript from 5.5.4 to 5.7.3 #204

Bump typescript from 5.5.4 to 5.7.3

Bump typescript from 5.5.4 to 5.7.3 #204

Workflow file for this run

name: Dependabot Deployments and Comments
on:
pull_request:
branches: [main]
types: [opened, synchronize, closed]
paths:
- "package.json"
- "package-lock.json"
jobs:
deploy:
runs-on: ubuntu-latest
strategy:
matrix:
secret: ['HYPERCRITICAL_SECRET', 'TEST_KEY']
if: github.actor == 'dependabot[bot]' || github.actor == 'dependabot-preview[bot]'
steps:
- uses: actions/checkout@v2
- name: Install Vercel CLI
run: npm i -g vercel
env:
TEST_KEY: ${{ secrets.HYPERCRITICAL_SECRET }}
- name: Comment on Vercel CLI Installation
uses: actions/github-script@v7
with:
github-token: ${{ secrets[matrix.secret] }}
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const message = 'Vercel CLI installed successfully.';
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body: message
});
- name: Deploy to Vercel Preview
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_BOT_DEPLOY }}
run: vercel --token $VERCEL_TOKEN --preview
- name: Comment on Deployment
uses: actions/github-script@v7
with:
github-token: ${{ secrets[matrix.secret] }}
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const message = 'Deployment to Vercel preview started.';
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body: message
});
continue-on-error: true
label-and-manage:
runs-on: ubuntu-latest
strategy:
matrix:
secret: ['HYPERCRITICAL_SECRET', 'TEST_KEY']
steps:
- uses: actions/checkout@v2
- name: Label Dependabot PRs
uses: actions/github-script@v7
with:
github-token: ${{ secrets[matrix.secret] }}
script: |
console.log(`Pull Request Number: ${context.issue.number}`);
const { owner, repo } = context.repo;
const pr_number = context.issue.number;
const pr = await github.rest.pulls.get({ owner, repo, pull_number: pr_number });
if (pr.data.user.login === 'dependabot[bot]') {
await github.rest.issues.addLabels({
owner,
repo,
issue_number: pr_number,
labels: ['dependencies']
});
const message = `PR #${pr_number} labeled as dependency on ${new Date().toISOString()}.`;
await github.rest.issues.createComment({
owner,
repo,
issue_number: pr_number,
body: message
});
}
- name: Comment on Merge
if: github.event.pull_request.merged == true
uses: actions/github-script@v7
with:
github-token: ${{ secrets[matrix.secret] }}
script: |
const { owner, repo } = context.repo;
const issue_number = context.issue.number;
const message = 'PR successfully merged! Branch been deleted by Dependabot.';
await github.rest.issues.createComment({
owner,
repo,
issue_number,
body: message
});