diff --git a/.gitea/workflows/pull_request_change.yaml b/.gitea/workflows/pull_request_change.yaml new file mode 100644 index 0000000..f96d48d --- /dev/null +++ b/.gitea/workflows/pull_request_change.yaml @@ -0,0 +1,16 @@ +name: Pull request change + +on: + pull_request: + paths: + - "**" + +jobs: + publish: + runs-on: debian-bullseye + + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: verify version + uses: https://git.thorup.us/actions/version_verify@v1 diff --git a/.gitea/workflows/push_to_main.yaml b/.gitea/workflows/push_to_main.yaml new file mode 100644 index 0000000..e48ffbe --- /dev/null +++ b/.gitea/workflows/push_to_main.yaml @@ -0,0 +1,20 @@ +name: Push to main + +on: + push: + branches: [main] + +jobs: + publish: + runs-on: debian-bullseye + + steps: + - name: Check out repository code + uses: actions/checkout@v3 + - name: version tag + uses: https://git.thorup.us/actions/version_tag@v1 + - name: npm publish + uses: https://git.thorup.us/actions/npm_publish@v1 + with: + npm_repo_key: ${{ secrets.NPM_REPO_KEY }} + npm_repo_domain: "npm.thorup.us" diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b512c09 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +node_modules \ No newline at end of file diff --git a/README.md b/README.md index 48f7c3e..210c5c5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ # interactor -cross-element communications and state management utility. \ No newline at end of file +Cross-element communications and state management utility. \ No newline at end of file diff --git a/index.js b/index.js new file mode 100644 index 0000000..c75bb3b --- /dev/null +++ b/index.js @@ -0,0 +1,2 @@ +import { Interactor, Action, Reaction } from "./src/interactor.js"; +export { Interactor, Action, Reaction }; diff --git a/package.json b/package.json new file mode 100644 index 0000000..1e6b0a5 --- /dev/null +++ b/package.json @@ -0,0 +1,8 @@ +{ + "name": "interactor", + "version": "1.0.0", + "description": "Cross-element communications and state management utility.", + "author": "Bryce Thorup", + "type": "module", + "main": "index.js" +}