Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Lundalogik/lime-elements
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v37.32.2
Choose a base ref
...
head repository: Lundalogik/lime-elements
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Loading
Showing 392 changed files with 32,157 additions and 14,917 deletions.
7 changes: 0 additions & 7 deletions .eslintignore

This file was deleted.

215 changes: 0 additions & 215 deletions .eslintrc.js

This file was deleted.

4 changes: 3 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Maintainer team should monitor all changes to files in the .github folder,
# like our GitHub Actions workflows and this CODEOWNERS file.
/.github/ @Lundalogik/lime-elements-maintainers
# @lime-opensource is also a code owner, to allow automatic merge of
# Dependabot updates.
/.github/ @Lundalogik/lime-elements-maintainers, @lime-opensource

# The maintainer team should also monitor all changes to the public API.
/etc/* @Lundalogik/lime-elements-maintainers
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
- package-ecosystem: "npm"
directory: "/"
open-pull-requests-limit: 4
@@ -25,3 +30,5 @@ updates:
- dependency-name: "puppeteer"
- dependency-name: "typescript"
update-types: ["version-update:semver-major"]
- dependency-name: "replace-in-file"
update-types: ["version-update:semver-major"]
6 changes: 3 additions & 3 deletions .github/workflows/cleanup.yml
Original file line number Diff line number Diff line change
@@ -5,7 +5,7 @@ on:

jobs:
docs:
if: github.actor != 'lime-opensource'
if: github.actor != 'dependabot[bot]' && github.actor != 'lime-opensource'
name: Remove PR docs
runs-on: ubuntu-latest
env:
@@ -14,13 +14,13 @@ jobs:
GH_TOKEN: ${{ secrets.CREATE_RELEASE }}
CI: true
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
token: ${{ secrets.CREATE_RELEASE }}
- name: Read .nvmrc
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
id: nvm
- uses: actions/setup-node@v4
- uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4.2.0
with:
node-version: "${{ steps.nvm.outputs.NVMRC }}"
- run: node -v && npm -v
121 changes: 121 additions & 0 deletions .github/workflows/create-backport-branch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
name: Create Backport Branch

on:
workflow_dispatch:
inputs:
last_release_version:
description: 'The version of the last release. Example: 1.2.3'
required: true
type: string
new_release_version:
description: 'The version of the new release. Example: 1.3.0'
required: true
type: string
last_release_git_tag:
description: 'The git tag of the last release. Defaults to `v{last_release_version}`. Example: v1.2.3'
required: false
default: ''
type: string
workflow_call:
inputs:
last_release_version:
description: 'The version of the last release. Example: 1.2.3'
required: true
type: string
new_release_version:
description: 'The version of the new release. Example: 1.3.0'
required: true
type: string
last_release_git_tag:
description: 'The git tag of the last release. Defaults to `v{last_release_version}`. Example: v1.2.3'
required: false
default: ''
type: string

jobs:
create_branch:
runs-on: ubuntu-latest
steps:
- name: Extract Last Release Major and Minor Versions
id: extract_last_versions
run: |
last_version='${{ inputs.last_release_version }}'
IFS='.' read -r last_major last_minor last_patch <<< "$last_version"
echo "last_major=$last_major" >> $GITHUB_OUTPUT
echo "last_minor=$last_minor" >> $GITHUB_OUTPUT
echo "last major: $last_major"
echo "last minor: $last_minor"
- name: Extract New Release Major and Minor Versions
id: extract_new_versions
run: |
new_version='${{ inputs.new_release_version }}'
IFS='.' read -r new_major new_minor new_patch <<< "$new_version"
echo "new_major=$new_major" >> $GITHUB_OUTPUT
echo "new_minor=$new_minor" >> $GITHUB_OUTPUT
echo "new major: $new_major"
echo "new minor: $new_minor"
- name: Determine Bump Type
id: determine_bump
run: |
new_major='${{ steps.extract_new_versions.outputs.new_major }}'
new_minor='${{ steps.extract_new_versions.outputs.new_minor }}'
last_major='${{ steps.extract_last_versions.outputs.last_major }}'
last_minor='${{ steps.extract_last_versions.outputs.last_minor }}'
if [ "$new_major" -gt "$last_major" ]; then
echo "bump_type=major" >> $GITHUB_OUTPUT
echo 'bump type is `major`'
elif [ "$new_major" -eq "$last_major" ] && [ "$new_minor" -gt "$last_minor" ]; then
echo "bump_type=minor" >> $GITHUB_OUTPUT
echo 'bump type is `minor`'
else
echo "bump_type=patch" >> $GITHUB_OUTPUT
echo 'bump type is `patch` or other'
fi
- name: Determine Branch Name
id: determine_branch_name
run: |
bump_type='${{ steps.determine_bump.outputs.bump_type }}'
last_major='${{ steps.extract_last_versions.outputs.last_major }}'
last_minor='${{ steps.extract_last_versions.outputs.last_minor }}'
if [ "$bump_type" = "major" ]; then
branch_name="${last_major}.x.x"
elif [ "$bump_type" = "minor" ]; then
branch_name="${last_major}.${last_minor}.x"
else
branch_name=""
fi
echo "branch_name=$branch_name" >> $GITHUB_OUTPUT
echo "branch name: $branch_name"
- name: Set Last Release Git Tag
id: set_git_tag
if: ${{ steps.determine_branch_name.outputs.branch_name != '' }}
run: |
if [ -z "${{ inputs.last_release_git_tag }}" ]; then
git_tag="v${{ inputs.last_release_version }}"
else
git_tag="${{ inputs.last_release_git_tag }}"
fi
echo "last_release_git_tag=${git_tag}" >> $GITHUB_OUTPUT
echo "last release git tag: ${git_tag}"
- name: Checkout Code
if: ${{ steps.determine_branch_name.outputs.branch_name != '' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: true
token: ${{ secrets.CREATE_RELEASE }}

- name: Create Release Branch
if: ${{ steps.determine_branch_name.outputs.branch_name != '' }}
run: |
git fetch origin "refs/tags/${{ steps.set_git_tag.outputs.last_release_git_tag }}:refs/tags/${{ steps.set_git_tag.outputs.last_release_git_tag }}"
git checkout "${{ steps.set_git_tag.outputs.last_release_git_tag }}"
git checkout -b "${{ steps.determine_branch_name.outputs.branch_name }}"
git push origin "${{ steps.determine_branch_name.outputs.branch_name }}"
echo "branch created: ${{ steps.determine_branch_name.outputs.branch_name }}"
Loading