-
Notifications
You must be signed in to change notification settings - Fork 39
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
base: main
Are you sure you want to change the base?
Changes from 21 commits
6f456c4
446bee3
48f484a
ecfe772
d14fca9
21371bc
aea0510
c3999fd
d6808ca
d57a954
6f599c3
1d11b0d
bfdb0d0
5881338
760b1ac
4fe0810
1d3c55e
a9daa18
802f397
89987ac
105bffe
b273ff4
7ec869a
db186cb
d663366
ac70c0c
60862f2
eabefdb
677b3f2
185edfa
160d46d
04d3b5e
5316430
be17fb5
8e57668
593d17d
9771d24
f7cf4a7
d302087
f83e158
7229a80
1ea6ea4
baead40
7114750
dc95e45
a47307c
4ee986c
28f9bf7
49fd33f
d0594f7
4698698
6e57584
f425cf8
71c7f1b
3bb6bd8
90e2df6
09cbaef
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
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" | ||
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: | ||
- "*" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why do we need this file? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's for the github release page. See example here There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure if this is relevant to fixing the moon phase integration? |
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 |
This file was deleted.
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 }} |
There was a problem hiding this comment.
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