diff --git a/.eslintrc.js b/.eslintrc.js
index 76f220db36..34c6b71107 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -11,11 +11,8 @@ module.exports = {
requireConfigFile: false,
},
rules: {
- // allow reassigning param
- 'no-param-reassign': [2, { props: false }],
- 'linebreak-style': ['error', 'unix'],
- 'import/extensions': ['error', {
- js: 'always',
- }],
+ 'import/extensions': ['error', { js: 'always' }], // require js file extensions in imports
+ 'linebreak-style': ['error', 'unix'], // enforce unix linebreaks
+ 'no-param-reassign': [2, { props: false }], // allow modifying properties of param
},
};
diff --git a/.github/workflows/cleanup-on-create.yaml b/.github/workflows/cleanup-on-create.yaml
index 40895b3d23..2796366b65 100644
--- a/.github/workflows/cleanup-on-create.yaml
+++ b/.github/workflows/cleanup-on-create.yaml
@@ -6,6 +6,7 @@ on:
create:
branches:
- main
+ workflow_dispatch:
jobs:
cleanup:
runs-on: ubuntu-latest
@@ -13,23 +14,18 @@ jobs:
contents: write
actions: write
# only run if commit message is "Initial commit" on main branch
- if: ${{ github.ref == 'refs/heads/main' && github.event.head_commit.message == 'Initial commit' }}
+ if: ${{ github.event_name == 'workflow_dispatch' || ( github.ref == 'refs/heads/main' && !(contains(github.event, 'head_commit') || github.event.head_commit.message == 'Initial commit' )) }}
steps:
- name: Checkout
uses: actions/checkout@v4
- - name: Use Node.js 18
+ - name: Use Node.js 20
uses: actions/setup-node@v4
with:
- node-version: 18
- - name: Uninstall dependencies
- run: |
- npm uninstall --save-dev semantic-release @semantic-release/git @semantic-release/changelog @semantic-release/exec
+ node-version: 20
- name: Remove Helper Files
run: |
rm -rf \
.github/workflows/cleanup-on-create.yaml \
- .github/workflows/semantic-release.yaml \
- .releaserc.cjs \
CHANGELOG.md
- name: Initialize README
@@ -47,7 +43,7 @@ jobs:
- name: Commit changes
run: |
git config --local user.email "helix@adobe.com"
- git config --local user.name "Helix Bot"
+ git config --local user.name "AEM Bot"
git add .
git commit -m "chore: cleanup repository template"
git push
diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml
new file mode 100644
index 0000000000..edc156d1de
--- /dev/null
+++ b/.github/workflows/main.yaml
@@ -0,0 +1,14 @@
+name: Build
+on: [push]
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Use Node.js 20
+ uses: actions/setup-node@v4
+ with:
+ node-version: 20
+ - run: npm ci
+ - run: npm run lint
diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml
deleted file mode 100644
index 37a91bcffc..0000000000
--- a/.github/workflows/run-tests.yaml
+++ /dev/null
@@ -1,17 +0,0 @@
-name: Linting
-
-on: [pull_request]
-
-jobs:
- build:
- runs-on: ubuntu-latest
- steps:
- - uses: actions/checkout@v4
- - name: Use Node.js
- uses: actions/setup-node@v4
- with:
- node-version: '16' #required for npm 8 or later.
- - run: npm install
- - run: npm run lint
- env:
- CI: true
diff --git a/.github/workflows/semantic-release.yaml b/.github/workflows/semantic-release.yaml
deleted file mode 100644
index 325234ae34..0000000000
--- a/.github/workflows/semantic-release.yaml
+++ /dev/null
@@ -1,23 +0,0 @@
-# Generate a changelog with semantic-release
-# Skip if the commit message is "Initial commit"
-on:
- push:
- branches:
- - main
-jobs:
- semantic-release:
- if: ${{ ! contains(github.event.head_commit.message, 'Initial commit') }}
- runs-on: ubuntu-latest
- steps:
- - name: Checkout
- uses: actions/checkout@v4
- - name: Setup Node.js
- uses: actions/setup-node@v4
- with:
- node-version: 18
- - name: Install dependencies
- run: npm ci
- - name: Run semantic-release
- env:
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: npm run semantic-release
diff --git a/.releaserc.cjs b/.releaserc.cjs
deleted file mode 100644
index c6f6d4110e..0000000000
--- a/.releaserc.cjs
+++ /dev/null
@@ -1,18 +0,0 @@
-module.exports = {
- plugins: [
- "@semantic-release/commit-analyzer",
- "@semantic-release/release-notes-generator",
- ["@semantic-release/changelog", {
- "changelogFile": "CHANGELOG.md",
- }],
- ["@semantic-release/npm", {
- "publish": false,
- }],
- ["@semantic-release/git", {
- "assets": ["package.json", "CHANGELOG.md"],
- "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
- }],
- ["@semantic-release/github", {}]
- ],
- branches: ['main'],
-};
\ No newline at end of file
diff --git a/.stylelintrc.json b/.stylelintrc.json
index 17c74ed1eb..0a08a15785 100644
--- a/.stylelintrc.json
+++ b/.stylelintrc.json
@@ -1,3 +1,3 @@
{
"extends": ["stylelint-config-standard"]
-}
\ No newline at end of file
+}
diff --git a/404.html b/404.html
index 291959fe2c..6b37021f8d 100644
--- a/404.html
+++ b/404.html
@@ -11,8 +11,6 @@
+