Skip to content

Merge pull request #2 from ADJazzzz/dev #3

Merge pull request #2 from ADJazzzz/dev

Merge pull request #2 from ADJazzzz/dev #3

Workflow file for this run

name: Build
on:
push:
branches:
- main
paths:
- src/**
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: "18.16.1"
- name: Install Dependencies
run: npm install
- name: Build
run: npm run build
- name: Remove .gitignore
run: rm -f .gitignore
- name: Get package version
id: package_version
run: echo "version=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
- name: Commit and push if there are changes
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]@users.noreply.github.com"
git add dist/*
git diff --quiet && git diff --staged --quiet || git commit -m "🔧 Automated build: v${{ steps.package_version.outputs.version }}"
git push