Skip to content

Bump @wordpress/element from 6.13.0 to 6.14.0 (#3020) #18195

Bump @wordpress/element from 6.13.0 to 6.14.0 (#3020)

Bump @wordpress/element from 6.13.0 to 6.14.0 (#3020) #18195

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
pull_request:
push:
paths:
- .github/workflows/*.js.yml
- '**/*[tj]sx?'
- package*.json
# Cancels all previous workflow runs for the same branch that have not yet completed.
concurrency:
# The concurrency group contains the workflow name and the branch name.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- name: Read .nvmrc
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV
- name: Use Node.js ${{ env.NODE_VERSION }}
uses: actions/[email protected]
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install JavaScript dependencies
run: npm ci
- name: Lint CSS code
run: npm run lint:css
- name: Lint package.json file
run: npm run lint:pkg-json
- name: Lint JS code
run: npm run lint:js
- name: Build application
run: npm run build
- name: Confirm the build is up-to-date
run: |
REPOSTATUS=`git status --porcelain 2>/dev/null`;
if [[ -n "$REPOSTATUS" ]]; then
echo "Repo is not clean. Did you forget to commit changes to the /build dir?";
echo "$REPOSTATUS";
exit 1;
else
echo "The repo file system is clean (build files are present and up to date).";
fi
- name: Run tests
run: npm test