Skip to content

Bump @babel/preset-env from 7.25.3 to 7.25.4 #1852

Bump @babel/preset-env from 7.25.3 to 7.25.4

Bump @babel/preset-env from 7.25.3 to 7.25.4 #1852

Workflow file for this run

name: Node.js Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14', '16', '18' ]
name: Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
- run: npm install
- run: npm test
build:
runs-on: ubuntu-latest
name: Check build and format have been run
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2.1.0
with:
app_id: ${{ secrets.APP_ID }}
private_key: ${{ secrets.APP_PRIVATE_KEY }}
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ steps.generate_token.outputs.token }}
fetch-depth: 0
- name: Set git user config
run: git config user.email "217586+NodeBuilder[bot]@users.noreply.github.com" && git config user.name "Node Builder"
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 16
- run: npm install
- run: npm run format
- run: npm run build
- name: Fail if files changed
id: file-changed
run: |
if [[ `git status --porcelain` ]]; then
git status --porcelain
git diff
exit 1
else
exit 0
fi
- name: Fix missing build
if: ${{ failure() && steps.file-changed.conclusion == 'failure' }}
run: git checkout ${{ github.event.pull_request.head.ref }} && npm ci && npm run format && npm run build && git add --all && git commit -m "npm run build" && git push