Bump @babel/preset-typescript from 7.22.15 to 7.23.0 #183
Workflow file for this run
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: Approve and Merge Dependabot PR | |
on: | |
pull_request_target: | |
branches: | |
- master | |
jobs: | |
auto_approve_and_merge: | |
runs-on: ubuntu-latest | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
env: | |
PR_URL: ${{github.event.pull_request.html_url}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: 🚚 Get latest code | |
uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-versions }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-versions }} | |
- name: Get npm cache directory | |
id: npm-cache-dir | |
run: | | |
echo "::set-output name=dir::$(npm config get cache)" | |
- uses: actions/cache@v3 | |
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true' | |
with: | |
path: ${{ steps.npm-cache-dir.outputs.dir }} | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node-${{ matrix.node-versions }} | |
- name: Build | |
run: | | |
npm ci | |
npm run prod | |
- name: Enable auto-approve for Dependabot PRs | |
run: | | |
gh pr review --approve "$PR_URL" | |
gh pr merge --auto --merge "$PR_URL" |