Skip to content

Commit

Permalink
Merge pull request #268 from javalent/api
Browse files Browse the repository at this point in the history
Api
  • Loading branch information
valentine195 authored Apr 23, 2024
2 parents 07e7889 + da1286e commit f471dd8
Show file tree
Hide file tree
Showing 82 changed files with 1,336 additions and 7,257 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: Node.js Package

on:
workflow_dispatch:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- name: Install
run: npm ci
# - run: npm test
- name: Build
run: npm run build --if-present
- run: npm whoami
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
14 changes: 1 addition & 13 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
id: release
with:
command: manifest
release-type: node

upload-build:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -95,16 +96,3 @@ jobs:
with:
name: Initiative Tracker
repo: initiative-tracker

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
16 changes: 0 additions & 16 deletions TESTING.md

This file was deleted.

2 changes: 1 addition & 1 deletion esbuild.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const parameters = {
minify: prod,
plugins: [
sveltePlugin({
compilerOptions: { css: true },
compilerOptions: { css: "injected" },
preprocess: sveltePreprocess(),
filterWarnings: (warning) => {
if (warning.code.toLowerCase().startsWith("a11y-")) {
Expand Down
311 changes: 0 additions & 311 deletions index.ts

This file was deleted.

Loading

0 comments on commit f471dd8

Please sign in to comment.