Skip to content

feat: Bumping version to 3.1.0 #222

feat: Bumping version to 3.1.0

feat: Bumping version to 3.1.0 #222

Workflow file for this run

name: Transpiled JavaScript
on:
workflow_dispatch:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
check-dist:
name: Check dist/
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Setup Node.js
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version-file: .node-version
cache: npm
- name: Install Dependencies
run: npm ci
- name: Build dist/ Directory
run: npm run bundle
- name: Compare Directories
id: compare
shell: bash
run: |
if [ ! -d dist/ ]; then
echo "::error::Expected dist/ directory does not exist"
exit 1
fi
[ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -eq 0 ] && DIFF=false || DIFF=true
echo "diff=$DIFF" | tee -a "$GITHUB_OUTPUT"
if [ "$DIFF" == "true" ]; then
echo "::error::Detected uncommitted changes after build"
exit 1
fi
- name: Upload dist/
if: (!cancelled()) && steps.compare.outputs.diff == 'true'
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
with:
name: dist
path: dist/