Skip to content

Commit

Permalink
fix: npm release
Browse files Browse the repository at this point in the history
  • Loading branch information
valentine195 committed Apr 20, 2023
1 parent cfa090a commit 9f8658c
Show file tree
Hide file tree
Showing 29 changed files with 404 additions and 92 deletions.
18 changes: 18 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 45
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- pinned
- security
- critical
# Label to use when marking an issue as stale
staleLabel: stale
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
19 changes: 16 additions & 3 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:

push:
branches:
- "master"
- "main"
env:
PLUGIN_NAME: initiative-tracker

Expand Down Expand Up @@ -31,8 +31,8 @@ jobs:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
env:
upload_url: ${{ needs.release-please.outputs.upload_url }}
tag_name: ${{ needs.release-please.outputs.tag_name }}
upload_url: ${{ needs.release-please.outputs.upload_url }}
tag_name: ${{ needs.release-please.outputs.tag_name }}
steps:
- uses: actions/checkout@v2
- name: Use Node.js
Expand Down Expand Up @@ -87,3 +87,16 @@ jobs:
asset_path: ./styles.css
asset_name: styles.css
asset_content_type: text/css

publish:
needs: release-please
if: ${{ needs.release-please.outputs.release_created }}
uses: javalent/workflows/.github/workflows/publish.yml@main
secrets: inherit

upgrade-overload:
needs: publish
uses: javalent/obsidian-overload/.github/workflows/upgrade.yml@main
secrets: inherit
with:
module: initiative-tracker
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
**/*
!types/**/*
!index.ts
!tsconfig.json
36 changes: 0 additions & 36 deletions @types/plugins.d.ts

This file was deleted.

4 changes: 2 additions & 2 deletions @types/index.d.ts → index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ export type TrackerEvents =
| [
name: "initiative-tracker:creature-added-at-location",
creature: Creature,
latlng: L.LatLng
latlng: any
]
| [name: "initiative-tracker:add-creature-here", latlng: L.LatLng]
| [name: "initiative-tracker:add-creature-here", latlng: any]
| [name: "initiative-tracker:creature-updated", creature: Creature]
| [
name: "initiative-tracker:creature-updated-in-settings",
Expand Down
Loading

0 comments on commit 9f8658c

Please sign in to comment.