Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix moon phase integration #131

Open
wants to merge 57 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
6f456c4
Update release.yaml
MelleD Apr 26, 2024
446bee3
Update release.yaml
MelleD Apr 26, 2024
48f484a
Update HelperFunctions.ts
MelleD Apr 26, 2024
ecfe772
Update release.yaml
MelleD Apr 26, 2024
d14fca9
Add lock.json
MelleD Apr 26, 2024
21371bc
Fix test
MelleD Apr 26, 2024
aea0510
Create release.yml
MelleD Apr 26, 2024
c3999fd
Create dependabot.yml
MelleD Apr 27, 2024
d6808ca
Merge branch 'rejuvenate:main' into main
MelleD Apr 27, 2024
d57a954
Bump @babel/traverse from 7.21.4 to 7.24.1
dependabot[bot] Apr 27, 2024
6f599c3
fix encoding
MelleD Apr 27, 2024
1d11b0d
Update and rename pr-build-and-test.yaml to build.yaml
MelleD Apr 27, 2024
bfdb0d0
Merge pull request #5 from MelleD/dependabot/npm_and_yarn/babel/trave…
MelleD Apr 27, 2024
5881338
Bump word-wrap from 1.2.3 to 1.2.5
dependabot[bot] Apr 27, 2024
760b1ac
Bump semver from 6.3.0 to 6.3.1
dependabot[bot] Apr 27, 2024
4fe0810
Bump tough-cookie from 4.1.2 to 4.1.3
dependabot[bot] Apr 27, 2024
1d3c55e
Bump @rollup/plugin-babel from 6.0.3 to 6.0.4
dependabot[bot] Apr 27, 2024
a9daa18
Merge pull request #4 from MelleD/dependabot/npm_and_yarn/tough-cooki…
MelleD Apr 27, 2024
802f397
Merge pull request #3 from MelleD/dependabot/npm_and_yarn/semver-6.3.1
MelleD Apr 27, 2024
89987ac
Merge pull request #2 from MelleD/dependabot/npm_and_yarn/word-wrap-1…
MelleD Apr 27, 2024
105bffe
Merge pull request #1 from MelleD/dependabot/npm_and_yarn/rollup/plug…
MelleD Apr 27, 2024
b273ff4
Update build.yaml
MelleD Apr 27, 2024
7ec869a
Update release.yaml
MelleD Apr 27, 2024
db186cb
Merge pull request #7 from MelleD/MelleD-patch-2
MelleD Apr 27, 2024
d663366
Bump @babel/plugin-proposal-decorators from 7.21.0 to 7.24.1
dependabot[bot] Apr 29, 2024
ac70c0c
Bump eslint-plugin-import from 2.27.5 to 2.29.1
dependabot[bot] Apr 29, 2024
60862f2
Bump rollup-plugin-serve from 2.0.2 to 3.0.0
dependabot[bot] Apr 29, 2024
eabefdb
Bump @babel/core from 7.21.4 to 7.24.4
dependabot[bot] Apr 29, 2024
677b3f2
Merge pull request #12 from MelleD/dependabot/npm_and_yarn/babel/core…
MelleD Apr 30, 2024
185edfa
Merge pull request #11 from MelleD/dependabot/npm_and_yarn/rollup-plu…
MelleD Apr 30, 2024
160d46d
Merge pull request #8 from MelleD/dependabot/npm_and_yarn/babel/plugi…
MelleD Apr 30, 2024
04d3b5e
Merge pull request #9 from MelleD/dependabot/npm_and_yarn/eslint-plug…
MelleD Apr 30, 2024
5316430
Bump jest and @types/jest
dependabot[bot] Apr 30, 2024
be17fb5
Merge pull request #10 from MelleD/dependabot/npm_and_yarn/multi-7c1d…
MelleD Apr 30, 2024
8e57668
Bump typescript from 5.0.4 to 5.4.5
dependabot[bot] Apr 30, 2024
593d17d
Bump @babel/preset-env from 7.21.4 to 7.24.5
dependabot[bot] Apr 30, 2024
9771d24
Bump jest-environment-jsdom from 29.5.0 to 29.7.0
dependabot[bot] Apr 30, 2024
f7cf4a7
Merge pull request #14 from MelleD/dependabot/npm_and_yarn/typescript…
MelleD May 2, 2024
d302087
Merge pull request #17 from MelleD/dependabot/npm_and_yarn/jest-envir…
MelleD May 2, 2024
f83e158
Merge pull request #15 from MelleD/dependabot/npm_and_yarn/babel/pres…
MelleD May 2, 2024
7229a80
Bump ts-jest from 29.1.0 to 29.1.2
dependabot[bot] May 2, 2024
1ea6ea4
Bump @typescript-eslint/eslint-plugin from 5.57.1 to 5.62.0
dependabot[bot] May 3, 2024
baead40
Bump @babel/core from 7.24.4 to 7.24.5
dependabot[bot] May 3, 2024
7114750
Bump @rollup/plugin-commonjs from 24.0.1 to 25.0.7
dependabot[bot] May 3, 2024
dc95e45
Merge pull request #20 from MelleD/dependabot/npm_and_yarn/rollup/plu…
MelleD May 3, 2024
a47307c
Merge pull request #19 from MelleD/dependabot/npm_and_yarn/babel/core…
MelleD May 3, 2024
4ee986c
Merge pull request #18 from MelleD/dependabot/npm_and_yarn/typescript…
MelleD May 3, 2024
28f9bf7
Merge pull request #13 from MelleD/dependabot/npm_and_yarn/ts-jest-29…
MelleD May 3, 2024
49fd33f
Merge branch 'rejuvenate:main' into main
MelleD May 4, 2024
d0594f7
Bump lit from 2.7.2 to 3.1.3
dependabot[bot] May 6, 2024
4698698
Bump @rollup/plugin-json from 6.0.0 to 6.1.0
dependabot[bot] May 6, 2024
6e57584
Bump @typescript-eslint/parser from 5.57.1 to 5.62.0
dependabot[bot] May 6, 2024
f425cf8
Bump eslint-plugin-simple-import-sort from 10.0.0 to 12.1.0
dependabot[bot] May 6, 2024
71c7f1b
Merge pull request #24 from MelleD/dependabot/npm_and_yarn/eslint-plu…
MelleD May 11, 2024
3bb6bd8
Merge pull request #23 from MelleD/dependabot/npm_and_yarn/typescript…
MelleD May 11, 2024
90e2df6
Merge pull request #22 from MelleD/dependabot/npm_and_yarn/rollup/plu…
MelleD May 11, 2024
09cbaef
Merge pull request #21 from MelleD/dependabot/npm_and_yarn/lit-3.1.3
MelleD May 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file

version: 2
updates:
# Enable version updates for npm
- package-ecosystem: "npm"
# Look for `package.json` and `lock` files in the `root` directory
directory: "/"
# Check the npm registry for updates every day (weekdays)
schedule:
interval: "daily"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This for dependabot to create PR see example here
MelleD#1

You have to enable it under settings

8 changes: 8 additions & 0 deletions .github/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
changelog:
categories:
- title: 🛠 Dependency Upgrades
labels:
- dependencies
- title: ⭐ New Features
labels:
- "*"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this file?

Copy link
Author

@MelleD MelleD Apr 27, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's for the github release page. See example here
https://github.com/MelleD/pm-index-card/releases/tag/0.2.0
or here
MelleD#1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this is relevant to fixing the moon phase integration?

21 changes: 21 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 'Build'

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
name: Test build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build
run: |
npm install
npm run test
npm run build
43 changes: 0 additions & 43 deletions .github/workflows/pr-build-and-test.yaml

This file was deleted.

91 changes: 46 additions & 45 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,64 +1,65 @@
name: Build & Release
name: "Release"

on:
push:
branches:
- main
workflow_dispatch:
inputs:
release_version:
description: 'Version number of the release'
required: true

jobs:
build-and-release:
name: Build & Release
gh_tagged_release:
name: Create tagged release
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@master

- name: Get yarn cache
id: yarn-cache
run: echo "::set-output name=dir::$(yarn cache dir)"
steps:
- name: Checkout project
uses: actions/checkout@v4

- uses: actions/cache@v1
- name: Setup Git
run: |
git config user.name github-actions
git config user.email github-actions@github.com
- name: Cache node modules
uses: actions/cache@v4
env:
cache-name: cache-node-modules
with:
path: ${{ steps.yarn-cache.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
path: ~/.npm
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-yarn-

- name: Setup Node
uses: actions/setup-node@v3
${{ runner.os }}-${{ env.cache-name }}-
${{ runner.os }}-
- name: Setup NodeJs
uses: actions/setup-node@v4
with:
node-version: 19
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'

- name: Install Dependencies
run: yarn install --frozen-lockfile

- name: Lint
run: yarn lint
run: npm install

- name: Test
run: yarn test

- name: Build
run: yarn build
run: npm run test

- uses: rymndhng/release-on-push-action@master
id: release
with:
bump_version_scheme: minor
use_github_release_notes: true
- name: Set app version (Unix)
run: npm version ${{ github.event.inputs.release_version }} --no-git-tag-version

- name: Log Release Version
run: |
echo "Created tag name: ${{ steps.release.outputs.tag_name }}"
echo "Created release version: ${{ steps.release.outputs.version }}"
- name: Build Project
run: npm run build

- name: Upload JS card file to release
uses: svenstaro/upload-release-action@v2
- name: "Create Github release (full)"
if: ${{ !contains( github.event.inputs.release_version, '-rc' ) }}
uses: softprops/action-gh-release@v1
id: lovelace_horizon_card_release
with:
overwrite: true
repo_token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.release.outputs.version }}
file: dist/lovelace-horizon-card.js
body: "Release version ${{ github.event.inputs.release_version }}."
tag_name: ${{ github.event.inputs.release_version }}
target_commitish: "main"
draft: false
prerelease: false
files: dist/lovelace-horizon-card.js
generate_release_notes: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading