From fd9ff3d3255851d28b84c0b7f70d26f32ab0c607 Mon Sep 17 00:00:00 2001 From: Kamar Mack Date: Sun, 3 Dec 2023 16:14:59 -0500 Subject: [PATCH] initial commit --- .github/workflows/npm-publish-merge.yml | 20 ++++++++++++++++++++ .gitignore | 3 +++ LICENSE | 5 +++++ README.md | 1 + index.js | 1 + package.json | 17 +++++++++++++++++ 6 files changed, 47 insertions(+) create mode 100644 .github/workflows/npm-publish-merge.yml create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 index.js create mode 100644 package.json diff --git a/.github/workflows/npm-publish-merge.yml b/.github/workflows/npm-publish-merge.yml new file mode 100644 index 0000000..905c164 --- /dev/null +++ b/.github/workflows/npm-publish-merge.yml @@ -0,0 +1,20 @@ +name: Publish to npm on merge +"on": + push: + branches: + - master +jobs: + build_and_deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v2 + with: + node-version: "18" + registry-url: "https://registry.npmjs.org" + - name: Build project + run: npm install && echo 'tsc --build ./tsconfig.json' + - name: Publish package + run: npm publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_GAT }} diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..927e0d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# MacOS +.DS_Store + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..4fc00f8 --- /dev/null +++ b/LICENSE @@ -0,0 +1,5 @@ +Copyright 2023 Kamar Mack + +Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/README.md b/README.md new file mode 100644 index 0000000..cff1c56 --- /dev/null +++ b/README.md @@ -0,0 +1 @@ +# ergonomic-react diff --git a/index.js b/index.js new file mode 100644 index 0000000..886f211 --- /dev/null +++ b/index.js @@ -0,0 +1 @@ +console.log("pending"); diff --git a/package.json b/package.json new file mode 100644 index 0000000..35ae517 --- /dev/null +++ b/package.json @@ -0,0 +1,17 @@ +{ + "author": "Kamar Mack ", + "description": "Helper types and functions for TypeScript repos using React", + "keywords": [ + "functional", + "nextjs", + "react", + "typescript" + ], + "license": "ISC", + "main": "index.js", + "name": "ergonomic-react", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "version": "0.0.1-alpha.0" +}