From 57a4843763108d81dfcc113d7a45c709a64c3b90 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sat, 5 Nov 2022 15:24:44 +0530 Subject: [PATCH 01/20] v1.0.1 --- .github/ISSUE_TEMPLATE/bug_report.md | 70 +++++++-------- .github/ISSUE_TEMPLATE/feature_request.md | 40 ++++----- .npmrc | 5 -- CODE_OF_CONDUCT.md | 102 +++++++++++----------- LICENSE | 10 +-- README.md | 4 +- babel.config.cjs | 14 +-- package-lock.json | 4 +- package.json | 2 +- rollup.config.js | 98 ++++++++++----------- 10 files changed, 172 insertions(+), 177 deletions(-) delete mode 100644 .npmrc diff --git a/.github/ISSUE_TEMPLATE/bug_report.md b/.github/ISSUE_TEMPLATE/bug_report.md index 4144ad9..5c13fed 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.md +++ b/.github/ISSUE_TEMPLATE/bug_report.md @@ -1,35 +1,35 @@ ---- -name: Bug report -about: Create a report to help us improve -title: "[BUG]" -labels: bug -assignees: divshekhar - ---- - -**Describe the bug** -A clear and concise description of what the bug is. - -**To Reproduce** -Steps to reproduce the behavior: -If this is a bug report, please provide a reproduction of the issue by going to https://codesandbox.io/s/9229wz40yo?fontsize=14. Paste a link here to your working reproduction. - -**Expected behavior** -A clear and concise description of what you expected to happen. - -**Screenshots** -If applicable, add screenshots to help explain your problem. - -**Desktop (please complete the following information):** - - OS: [e.g. iOS] - - Browser [e.g. chrome, safari] - - Version [e.g. 22] - -**Smartphone (please complete the following information):** - - Device: [e.g. iPhone6] - - OS: [e.g. iOS8.1] - - Browser [e.g. stock browser, safari] - - Version [e.g. 22] - -**Additional context** -Add any other context about the problem here. +--- +name: Bug report +about: Create a report to help us improve +title: "[BUG]" +labels: bug +assignees: divshekhar + +--- + +**Describe the bug** +A clear and concise description of what the bug is. + +**To Reproduce** +Steps to reproduce the behavior: +If this is a bug report, please provide a reproduction of the issue by going to https://codesandbox.io/s/9229wz40yo?fontsize=14. Paste a link here to your working reproduction. + +**Expected behavior** +A clear and concise description of what you expected to happen. + +**Screenshots** +If applicable, add screenshots to help explain your problem. + +**Desktop (please complete the following information):** + - OS: [e.g. iOS] + - Browser [e.g. chrome, safari] + - Version [e.g. 22] + +**Smartphone (please complete the following information):** + - Device: [e.g. iPhone6] + - OS: [e.g. iOS8.1] + - Browser [e.g. stock browser, safari] + - Version [e.g. 22] + +**Additional context** +Add any other context about the problem here. diff --git a/.github/ISSUE_TEMPLATE/feature_request.md b/.github/ISSUE_TEMPLATE/feature_request.md index f455865..4a3a262 100644 --- a/.github/ISSUE_TEMPLATE/feature_request.md +++ b/.github/ISSUE_TEMPLATE/feature_request.md @@ -1,20 +1,20 @@ ---- -name: Feature request -about: Suggest an idea for this project -title: "[FEATURE]" -labels: enhancement -assignees: '' - ---- - -**Is your feature request related to a problem? Please describe.** -A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] - -**Describe the solution you'd like** -A clear and concise description of what you want to happen. - -**Describe alternatives you've considered** -A clear and concise description of any alternative solutions or features you've considered. - -**Additional context** -Add any other context or screenshots about the feature request here. +--- +name: Feature request +about: Suggest an idea for this project +title: "[FEATURE]" +labels: enhancement +assignees: '' + +--- + +**Is your feature request related to a problem? Please describe.** +A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] + +**Describe the solution you'd like** +A clear and concise description of what you want to happen. + +**Describe alternatives you've considered** +A clear and concise description of any alternative solutions or features you've considered. + +**Additional context** +Add any other context or screenshots about the feature request here. diff --git a/.npmrc b/.npmrc deleted file mode 100644 index 2c31a28..0000000 --- a/.npmrc +++ /dev/null @@ -1,5 +0,0 @@ -legacy-peer-deps=true - -registry=https://registry.npmjs.org/ -@DevsOnReact:registry=https://npm.pkg.github.com/ -//npm.pkg.github.com/:_authToken=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 diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md index e736b07..b96a862 100644 --- a/CODE_OF_CONDUCT.md +++ b/CODE_OF_CONDUCT.md @@ -1,51 +1,51 @@ -# Contributor Code of Conduct - -Our [company values](https://auth0.com/careers/culture) guide us in our day-to-day interactions and decision-making. Our open source projects are no exception. Trust, respect, collaboration and transparency are core values we believe should live and breathe within our projects. Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share. - -## Our Pledge - -In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. - -## Our Standards - -Examples of behavior that contributes to creating a positive environment include: - -- Using welcoming and inclusive language -- Being respectful of differing viewpoints and experiences -- Gracefully accepting constructive criticism -- Attempting collaboration before conflict -- Focusing on what is best for the community -- Showing empathy towards other community members - -Examples of unacceptable behavior by participants include: - -- Violence, threats of violence, or inciting others to commit self-harm -- The use of sexualized language or imagery and unwelcome sexual attention or advances -- Trolling, intentionally spreading misinformation, insulting/derogatory comments, and personal or political attacks -- Public or private harassment -- Publishing others' private information, such as a physical or electronic address, without explicit permission -- Abuse of the reporting process to intentionally harass or exclude others -- Advocating for, or encouraging, any of the above behavior -- Other conduct which could reasonably be considered inappropriate in a professional setting - -## Our Responsibilities - -Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. - -Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. - -## Scope - -This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. - -## Enforcement - -Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting us anonymously through [this form](https://goo.gl/forms/chVYUnA4bP70WGsL2). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. - -Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. - -If you are unsure whether an incident is a violation, or whether the space where the incident took place is covered by our Code of Conduct, **we encourage you to still report it**. We would prefer to have a few extra reports where we decide to take no action, than to leave an incident go unnoticed and unresolved that may result in an individual or group to feel like they can no longer participate in the community. Reports deemed as not a violation will also allow us to improve our Code of Conduct and processes surrounding it. If you witness a dangerous situation or someone in distress, we encourage you to report even if you are only an observer. - -## Attribution - -This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), [version 1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html). +# Contributor Code of Conduct + +Our [company values](https://auth0.com/careers/culture) guide us in our day-to-day interactions and decision-making. Our open source projects are no exception. Trust, respect, collaboration and transparency are core values we believe should live and breathe within our projects. Our community welcomes participants from around the world with different experiences, unique perspectives, and great ideas to share. + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment include: + +- Using welcoming and inclusive language +- Being respectful of differing viewpoints and experiences +- Gracefully accepting constructive criticism +- Attempting collaboration before conflict +- Focusing on what is best for the community +- Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +- Violence, threats of violence, or inciting others to commit self-harm +- The use of sexualized language or imagery and unwelcome sexual attention or advances +- Trolling, intentionally spreading misinformation, insulting/derogatory comments, and personal or political attacks +- Public or private harassment +- Publishing others' private information, such as a physical or electronic address, without explicit permission +- Abuse of the reporting process to intentionally harass or exclude others +- Advocating for, or encouraging, any of the above behavior +- Other conduct which could reasonably be considered inappropriate in a professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting us anonymously through [this form](https://goo.gl/forms/chVYUnA4bP70WGsL2). All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. + +Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership. + +If you are unsure whether an incident is a violation, or whether the space where the incident took place is covered by our Code of Conduct, **we encourage you to still report it**. We would prefer to have a few extra reports where we decide to take no action, than to leave an incident go unnoticed and unresolved that may result in an individual or group to feel like they can no longer participate in the community. Reports deemed as not a violation will also allow us to improve our Code of Conduct and processes surrounding it. If you witness a dangerous situation or someone in distress, we encourage you to report even if you are only an observer. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant](https://www.contributor-covenant.org/), [version 1.4](https://www.contributor-covenant.org/version/1/4/code-of-conduct.html). diff --git a/LICENSE b/LICENSE index 24a4878..f87fdc3 100644 --- a/LICENSE +++ b/LICENSE @@ -1,5 +1,5 @@ -Copyright 2022 @divshekhar - -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. +Copyright 2022 @divshekhar + +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 index 8c85799..a8544fd 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,3 @@ -# Flexboard - +# Flexboard + React component library for re-sizable sidebars \ No newline at end of file diff --git a/babel.config.cjs b/babel.config.cjs index 6af7345..9f5e4ed 100644 --- a/babel.config.cjs +++ b/babel.config.cjs @@ -1,7 +1,7 @@ -module.exports = { - presets: [ - "@babel/preset-env", - "@babel/preset-react", - "@babel/preset-typescript", - ], -}; +module.exports = { + presets: [ + "@babel/preset-env", + "@babel/preset-react", + "@babel/preset-typescript", + ], +}; diff --git a/package-lock.json b/package-lock.json index 9310a22..935f978 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "flexboard", + "name": "@DevsOnReact/flexboard", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "flexboard", + "name": "@DevsOnReact/flexboard", "version": "1.0.0", "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index c48ea11..f01f29f 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ }, "private": false, "description": "React component library for re-sizable sidebars", - "version": "1.0.0", + "version": "1.0.1", "license": "ISC", "keywords": ["react", "components", "sidebar"], "type": "module", diff --git a/rollup.config.js b/rollup.config.js index a1c0f4d..632b6fb 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,49 +1,49 @@ -import resolve from '@rollup/plugin-node-resolve'; -import commonjs from '@rollup/plugin-commonjs'; -import typescript from '@rollup/plugin-typescript'; -import dts from 'rollup-plugin-dts'; -import postcss from 'rollup-plugin-postcss'; -import { terser } from 'rollup-plugin-terser'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; - -import packageJson from './package.json' assert { type: 'json' }; - -export default [ - { - input: 'src/index.ts', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true - }, - { - file: packageJson.module, - format: 'esm', - sourcemap: true - } - ], - plugins: [ - peerDepsExternal(), - resolve(), - commonjs(), - typescript({ - exclude: [ - // Exclude test files - /\.test.((js|jsx|ts|tsx))$/, - // Exclude story files - /\.stories.((js|jsx|ts|tsx|mdx))$/ - ], - tsconfig: './tsconfig.json' - }), - postcss(), - terser() - ] - }, - { - input: 'dist/esm/index.d.ts', - output: [{ file: 'dist/index.d.ts', format: 'esm' }], - plugins: [dts()], - external: [/\.css$/] - } -]; +import resolve from '@rollup/plugin-node-resolve'; +import commonjs from '@rollup/plugin-commonjs'; +import typescript from '@rollup/plugin-typescript'; +import dts from 'rollup-plugin-dts'; +import postcss from 'rollup-plugin-postcss'; +import { terser } from 'rollup-plugin-terser'; +import peerDepsExternal from 'rollup-plugin-peer-deps-external'; + +import packageJson from './package.json' assert { type: 'json' }; + +export default [ + { + input: 'src/index.ts', + output: [ + { + file: packageJson.main, + format: 'cjs', + sourcemap: true + }, + { + file: packageJson.module, + format: 'esm', + sourcemap: true + } + ], + plugins: [ + peerDepsExternal(), + resolve(), + commonjs(), + typescript({ + exclude: [ + // Exclude test files + /\.test.((js|jsx|ts|tsx))$/, + // Exclude story files + /\.stories.((js|jsx|ts|tsx|mdx))$/ + ], + tsconfig: './tsconfig.json' + }), + postcss(), + terser() + ] + }, + { + input: 'dist/esm/index.d.ts', + output: [{ file: 'dist/index.d.ts', format: 'esm' }], + plugins: [dts()], + external: [/\.css$/] + } +]; From 3cdc252c833eb25986c6748854e5f7beaf085f5e Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sat, 5 Nov 2022 20:27:26 +0530 Subject: [PATCH 02/20] github workflow added --- .github/workflows/publish_to_github.yml | 62 +++++++++++++++++++++++++ .github/workflows/publish_to_npm.yml | 31 +++++++++++++ 2 files changed, 93 insertions(+) create mode 100644 .github/workflows/publish_to_github.yml create mode 100644 .github/workflows/publish_to_npm.yml diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish_to_github.yml new file mode 100644 index 0000000..12b029b --- /dev/null +++ b/.github/workflows/publish_to_github.yml @@ -0,0 +1,62 @@ +name: Publish to GitHub Packages 📦 + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install Dependencies + run: npm install + + - name: Run Tests + run: npm test + + - name: Build 🔧 + run: npm run build + + package: + needs: [build] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup Node.js 18.x + uses: actions/setup-node@v1 + with: + node-version: 18.x + + - name: Upload + uses: actions/upload-artifact@v2 + with: + name: package + path: '*.tgz' + + publish: + name: 'Publish to GitHub Packages' + needs: [package] + runs-on: ubuntu-latest + steps: + - name: Upload + uses: actions/download-artifact@v2 + with: + name: package + + - uses: actions/setup-node@v1 + with: + node-version: 18.x + registry-url: https://npm.pkg.github.com/ + scope: '@DevsOnReact' + - run: echo "registry=https://npm.pkg.github.com/@DevsOnReact" >> .npmrc + - run: npm publish $(ls *.tgz) + env: + NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml new file mode 100644 index 0000000..cef6d9b --- /dev/null +++ b/.github/workflows/publish_to_npm.yml @@ -0,0 +1,31 @@ +name: Publish to NPM 📦 + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: '18.x' + registry-url: 'https://registry.npmjs.org' + + - name: Install Dependencies + run: npm install + + - name: Run Tests + run: npm test + + - name: Build 🔧 + run: npm run build + + - name: Publish package on NPM 📦 + run: npm publish + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_ACTION_TOKEN }} From 5cca11a4c5d747875903a00456e88f04c4289b64 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sat, 5 Nov 2022 20:27:41 +0530 Subject: [PATCH 03/20] registry added --- .npmignore | 10 ++++++++++ package.json | 23 ++++++++++++++++++----- 2 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 .npmignore diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..7ffdf75 --- /dev/null +++ b/.npmignore @@ -0,0 +1,10 @@ +.gitignore +src/ +*.log +*.tsbuildinfo + +package-lock.json +yarn.lock + +coverage +node_modules \ No newline at end of file diff --git a/package.json b/package.json index f01f29f..a798ea6 100644 --- a/package.json +++ b/package.json @@ -1,14 +1,27 @@ { - "author": "Divyanshu Shekhar", - "name": "@DevsOnReact/flexboard", + "author": "Divyanshu Shekhar ", + "name": "@devsonreact/flexboard", + "version": "1.0.0", "publishConfig": { - "registry": "https://npm.pkg.github.com/DevsOnReact" + "registry": "https://npm.pkg.github.com/", + "access": "public" }, + "repository": { + "type": "git", + "url": "git+https://github.com/DevsOnReact/flexboard.git" + }, + "bugs": { + "url": "https://github.com/DevsOnReact/flexboard/issues" + }, + "homepage": "https://github.com/DevsOnReact/flexboard#readme", "private": false, "description": "React component library for re-sizable sidebars", - "version": "1.0.1", "license": "ISC", - "keywords": ["react", "components", "sidebar"], + "keywords": [ + "react", + "components", + "sidebar" + ], "type": "module", "main": "dist/cjs/index.js", "module": "dist/esm/index.js", From aa1ac4c27e728c299fae033f02c305346d20009b Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sat, 5 Nov 2022 20:30:57 +0530 Subject: [PATCH 04/20] force install --- .github/workflows/publish_to_github.yml | 2 +- .github/workflows/publish_to_npm.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish_to_github.yml index 12b029b..be122a9 100644 --- a/.github/workflows/publish_to_github.yml +++ b/.github/workflows/publish_to_github.yml @@ -17,7 +17,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Install Dependencies - run: npm install + run: npm install --force - name: Run Tests run: npm test diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index cef6d9b..10895c5 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -17,7 +17,7 @@ jobs: registry-url: 'https://registry.npmjs.org' - name: Install Dependencies - run: npm install + run: npm install --force - name: Run Tests run: npm test From d1c6a932e5da6f2a5a578f26ee0c469908f6b5dc Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sat, 5 Nov 2022 20:43:21 +0530 Subject: [PATCH 05/20] node 16 --- .github/workflows/publish_to_github.yml | 4 ++-- .github/workflows/publish_to_npm.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish_to_github.yml index be122a9..b1e328d 100644 --- a/.github/workflows/publish_to_github.yml +++ b/.github/workflows/publish_to_github.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: '18.x' + node-version: '16.x' registry-url: 'https://registry.npmjs.org' - name: Install Dependencies @@ -33,7 +33,7 @@ jobs: - name: Setup Node.js 18.x uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 16.x - name: Upload uses: actions/upload-artifact@v2 diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index 10895c5..65a1221 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -13,7 +13,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v2 with: - node-version: '18.x' + node-version: '16.x' registry-url: 'https://registry.npmjs.org' - name: Install Dependencies From f462b4e35b14fcdc6a36394bfd1f2ff7650a4fa0 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 13:29:35 +0530 Subject: [PATCH 06/20] rollup types issue fixed --- .github/workflows/publish_to_github.yml | 17 +++-- package-lock.json | 4 +- rollup.config.js | 98 ++++++++++++------------- 3 files changed, 61 insertions(+), 58 deletions(-) diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish_to_github.yml index b1e328d..9359dc6 100644 --- a/.github/workflows/publish_to_github.yml +++ b/.github/workflows/publish_to_github.yml @@ -30,12 +30,12 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - name: Setup Node.js 18.x + - name: Setup Node.js 16.x uses: actions/setup-node@v1 with: node-version: 16.x - - name: Upload + - name: Upload Artifact uses: actions/upload-artifact@v2 with: name: package @@ -46,17 +46,20 @@ jobs: needs: [package] runs-on: ubuntu-latest steps: - - name: Upload + - name: Download Artifact uses: actions/download-artifact@v2 with: name: package - uses: actions/setup-node@v1 with: - node-version: 18.x + node-version: 16.x registry-url: https://npm.pkg.github.com/ scope: '@DevsOnReact' + - run: echo "registry=https://npm.pkg.github.com/@DevsOnReact" >> .npmrc - - run: npm publish $(ls *.tgz) - env: - NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} + + - name: Publish to GitHub Packages 📦 + run: npm publish $(ls *.tgz) --access public + env: + NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} diff --git a/package-lock.json b/package-lock.json index 935f978..259542f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,11 +1,11 @@ { - "name": "@DevsOnReact/flexboard", + "name": "@devsonreact/flexboard", "version": "1.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { - "name": "@DevsOnReact/flexboard", + "name": "@devsonreact/flexboard", "version": "1.0.0", "license": "ISC", "dependencies": { diff --git a/rollup.config.js b/rollup.config.js index 632b6fb..b6901db 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -1,49 +1,49 @@ -import resolve from '@rollup/plugin-node-resolve'; -import commonjs from '@rollup/plugin-commonjs'; -import typescript from '@rollup/plugin-typescript'; -import dts from 'rollup-plugin-dts'; -import postcss from 'rollup-plugin-postcss'; -import { terser } from 'rollup-plugin-terser'; -import peerDepsExternal from 'rollup-plugin-peer-deps-external'; - -import packageJson from './package.json' assert { type: 'json' }; - -export default [ - { - input: 'src/index.ts', - output: [ - { - file: packageJson.main, - format: 'cjs', - sourcemap: true - }, - { - file: packageJson.module, - format: 'esm', - sourcemap: true - } - ], - plugins: [ - peerDepsExternal(), - resolve(), - commonjs(), - typescript({ - exclude: [ - // Exclude test files - /\.test.((js|jsx|ts|tsx))$/, - // Exclude story files - /\.stories.((js|jsx|ts|tsx|mdx))$/ - ], - tsconfig: './tsconfig.json' - }), - postcss(), - terser() - ] - }, - { - input: 'dist/esm/index.d.ts', - output: [{ file: 'dist/index.d.ts', format: 'esm' }], - plugins: [dts()], - external: [/\.css$/] - } -]; +import commonjs from '@rollup/plugin-commonjs'; +import resolve from '@rollup/plugin-node-resolve'; +import typescript from '@rollup/plugin-typescript'; +import dts from 'rollup-plugin-dts'; +import peerDepsExternal from 'rollup-plugin-peer-deps-external'; +import postcss from 'rollup-plugin-postcss'; +import { terser } from 'rollup-plugin-terser'; + +import packageJson from './package.json' assert { type: 'json' }; + +export default [ + { + input: 'src/index.ts', + output: [ + { + file: packageJson.main, + format: 'cjs', + sourcemap: true + }, + { + file: packageJson.module, + format: 'esm', + sourcemap: true + } + ], + plugins: [ + peerDepsExternal(), + resolve(), + commonjs(), + typescript({ + exclude: [ + // Exclude test files + /\.test.((js|jsx|ts|tsx))$/, + // Exclude story files + /\.stories.((js|jsx|ts|tsx|mdx))$/ + ], + tsconfig: './tsconfig.json' + }), + postcss(), + terser() + ] + }, + { + input: 'dist/esm/src/index.d.ts', + output: [{ file: 'dist/index.d.ts', format: 'esm' }], + plugins: [dts()], + external: [/\.css$/] + } +]; From 708ecb795feb08f4ed1f9f779e5619f134b827b8 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 15:07:46 +0530 Subject: [PATCH 07/20] workflow fixes --- .github/workflows/publish_to_github.yml | 20 ++++++++++---------- .github/workflows/publish_to_npm.yml | 9 +++++---- 2 files changed, 15 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish_to_github.yml index 9359dc6..2550914 100644 --- a/.github/workflows/publish_to_github.yml +++ b/.github/workflows/publish_to_github.yml @@ -2,19 +2,19 @@ name: Publish to GitHub Packages 📦 on: release: - types: [created] + types: + - published jobs: build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '16.x' - registry-url: 'https://registry.npmjs.org' + node-version: 16 - name: Install Dependencies run: npm install --force @@ -29,11 +29,11 @@ jobs: needs: [build] runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Setup Node.js 16.x - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - name: Setup Node js + uses: actions/setup-node@v3 with: - node-version: 16.x + node-version: 16 - name: Upload Artifact uses: actions/upload-artifact@v2 @@ -51,7 +51,7 @@ jobs: with: name: package - - uses: actions/setup-node@v1 + - uses: actions/setup-node@v3 with: node-version: 16.x registry-url: https://npm.pkg.github.com/ diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index 65a1221..47c6193 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -2,18 +2,19 @@ name: Publish to NPM 📦 on: release: - types: [created] + types: + - published jobs: build: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 - name: Setup Node - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '16.x' + node-version: 16 registry-url: 'https://registry.npmjs.org' - name: Install Dependencies From f96e7340561c9dc53e2a4e13aafcd7ee08671c66 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 15:09:29 +0530 Subject: [PATCH 08/20] workflow fix --- .github/workflows/publish_to_github.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish_to_github.yml index 2550914..9aec130 100644 --- a/.github/workflows/publish_to_github.yml +++ b/.github/workflows/publish_to_github.yml @@ -60,6 +60,6 @@ jobs: - run: echo "registry=https://npm.pkg.github.com/@DevsOnReact" >> .npmrc - name: Publish to GitHub Packages 📦 - run: npm publish $(ls *.tgz) --access public + - run: npm publish $(ls *.tgz) --access public env: NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} From a36a04924603225048d685ad22ce4f54b7627ed4 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 15:53:56 +0530 Subject: [PATCH 09/20] publish.yml added --- .../{publish_to_github.yml => publish.yml} | 19 +++++++++-- .github/workflows/publish_to_npm.yml | 32 ------------------- 2 files changed, 17 insertions(+), 34 deletions(-) rename .github/workflows/{publish_to_github.yml => publish.yml} (76%) delete mode 100644 .github/workflows/publish_to_npm.yml diff --git a/.github/workflows/publish_to_github.yml b/.github/workflows/publish.yml similarity index 76% rename from .github/workflows/publish_to_github.yml rename to .github/workflows/publish.yml index 9aec130..a58d139 100644 --- a/.github/workflows/publish_to_github.yml +++ b/.github/workflows/publish.yml @@ -1,4 +1,4 @@ -name: Publish to GitHub Packages 📦 +name: Publish Packages 📦 on: release: @@ -41,7 +41,7 @@ jobs: name: package path: '*.tgz' - publish: + publish-to-github-packages: name: 'Publish to GitHub Packages' needs: [package] runs-on: ubuntu-latest @@ -63,3 +63,18 @@ jobs: - run: npm publish $(ls *.tgz) --access public env: NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} + + publish-to-npm: + name: 'Publish to NPM' + needs: [package] + runs-on: ubuntu-latest + steps: + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org + + - name: Publish to NPM 📦 + - run: npm publish + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml deleted file mode 100644 index 47c6193..0000000 --- a/.github/workflows/publish_to_npm.yml +++ /dev/null @@ -1,32 +0,0 @@ -name: Publish to NPM 📦 - -on: - release: - types: - - published - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: 'https://registry.npmjs.org' - - - name: Install Dependencies - run: npm install --force - - - name: Run Tests - run: npm test - - - name: Build 🔧 - run: npm run build - - - name: Publish package on NPM 📦 - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_GITHUB_ACTION_TOKEN }} From ad1ac72fac80aa759ce94f495153a31084aa389d Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 16:07:19 +0530 Subject: [PATCH 10/20] workflow changes --- .github/workflows/publish.yml | 17 +++++++++-------- package.json | 2 +- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index a58d139..f8cbe61 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -42,7 +42,7 @@ jobs: path: '*.tgz' publish-to-github-packages: - name: 'Publish to GitHub Packages' + name: 'Publish to GitHub Packages 📦' needs: [package] runs-on: ubuntu-latest steps: @@ -61,12 +61,12 @@ jobs: - name: Publish to GitHub Packages 📦 - run: npm publish $(ls *.tgz) --access public - env: - NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} - + env: + NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} + publish-to-npm: - name: 'Publish to NPM' - needs: [package] + name: 'Publish to NPM 📦' + needs: [build] runs-on: ubuntu-latest steps: - uses: actions/setup-node@v3 @@ -76,5 +76,6 @@ jobs: - name: Publish to NPM 📦 - run: npm publish - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} + working-directory: ./dist + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} diff --git a/package.json b/package.json index a798ea6..5797f63 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "author": "Divyanshu Shekhar ", - "name": "@devsonreact/flexboard", + "name": "@DevsOnReact/flexboard", "version": "1.0.0", "publishConfig": { "registry": "https://npm.pkg.github.com/", From bf2c808328a1192b336d941ed3ba167d003cf95a Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 16:09:50 +0530 Subject: [PATCH 11/20] workflow fix --- .github/workflows/publish.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index f8cbe61..c881c47 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -46,6 +46,7 @@ jobs: needs: [package] runs-on: ubuntu-latest steps: + - uses: actions/checkout@v3 - name: Download Artifact uses: actions/download-artifact@v2 with: From 6d97252efb2db34f45fb8b0e9d54207ab8fb71cf Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 16:24:11 +0530 Subject: [PATCH 12/20] workflow --- .github/workflows/publish.yml | 82 ------------------- .../workflows/publish_to_github_packages.yml | 34 ++++++++ .github/workflows/publish_to_npm.yml | 27 ++++++ 3 files changed, 61 insertions(+), 82 deletions(-) delete mode 100644 .github/workflows/publish.yml create mode 100644 .github/workflows/publish_to_github_packages.yml create mode 100644 .github/workflows/publish_to_npm.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml deleted file mode 100644 index c881c47..0000000 --- a/.github/workflows/publish.yml +++ /dev/null @@ -1,82 +0,0 @@ -name: Publish Packages 📦 - -on: - release: - types: - - published - -jobs: - build: - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v3 - - name: Setup Node - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Install Dependencies - run: npm install --force - - - name: Run Tests - run: npm test - - - name: Build 🔧 - run: npm run build - - package: - needs: [build] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Setup Node js - uses: actions/setup-node@v3 - with: - node-version: 16 - - - name: Upload Artifact - uses: actions/upload-artifact@v2 - with: - name: package - path: '*.tgz' - - publish-to-github-packages: - name: 'Publish to GitHub Packages 📦' - needs: [package] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Download Artifact - uses: actions/download-artifact@v2 - with: - name: package - - - uses: actions/setup-node@v3 - with: - node-version: 16.x - registry-url: https://npm.pkg.github.com/ - scope: '@DevsOnReact' - - - run: echo "registry=https://npm.pkg.github.com/@DevsOnReact" >> .npmrc - - - name: Publish to GitHub Packages 📦 - - run: npm publish $(ls *.tgz) --access public - env: - NODE_AUTH_TOKEN: ${{secrets.GH_PACKAGE_TOKEN}} - - publish-to-npm: - name: 'Publish to NPM 📦' - needs: [build] - runs-on: ubuntu-latest - steps: - - uses: actions/setup-node@v3 - with: - node-version: 16 - registry-url: https://registry.npmjs.org - - - name: Publish to NPM 📦 - - run: npm publish - working-directory: ./dist - env: - NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} diff --git a/.github/workflows/publish_to_github_packages.yml b/.github/workflows/publish_to_github_packages.yml new file mode 100644 index 0000000..f578dad --- /dev/null +++ b/.github/workflows/publish_to_github_packages.yml @@ -0,0 +1,34 @@ +name: Publish to GitHub Packages 📦 + +on: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + - uses: actions/checkout@v3 + # Setup .npmrc file to publish to GitHub Packages + - uses: actions/setup-node@v3 + with: + node-version: '16.x' + registry-url: 'https://npm.pkg.github.com' + # Defaults to the user or organization that owns the workflow file + scope: '@DevsOnReact' + + - name: Install Dependencies + run: npm install --force + + - run: npm test + + - name: Build 🔧 + run: npm run build + + - run: npm publish + working-directory: ./dist + env: + NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }} diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml new file mode 100644 index 0000000..da61a44 --- /dev/null +++ b/.github/workflows/publish_to_npm.yml @@ -0,0 +1,27 @@ +name: Publish to NPM 📦 + +on: + release: + types: [published] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + registry-url: https://registry.npmjs.org/ + + - run: npm install --force + + - run: npm test + + - name: Build 🔧 + run: npm run build + + - run: npm publish --access public + working-directory: ./dist + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} From cd49aff2b6c84c53fc95b2cd1ee0d700cf7c49a6 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Sun, 6 Nov 2022 16:29:48 +0530 Subject: [PATCH 13/20] workflow --- .github/workflows/publish_to_github_packages.yml | 7 ++++--- .github/workflows/publish_to_npm.yml | 14 ++++++++------ 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish_to_github_packages.yml b/.github/workflows/publish_to_github_packages.yml index f578dad..93b843a 100644 --- a/.github/workflows/publish_to_github_packages.yml +++ b/.github/workflows/publish_to_github_packages.yml @@ -23,12 +23,13 @@ jobs: - name: Install Dependencies run: npm install --force - - run: npm test + - name: Test + run: npm test - name: Build 🔧 run: npm run build - - run: npm publish - working-directory: ./dist + - name: Publish to GitHub Packages + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }} diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index da61a44..b1bb564 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -14,14 +14,16 @@ jobs: node-version: 16 registry-url: https://registry.npmjs.org/ - - run: npm install --force - - - run: npm test + - name: Install Dependencies + run: npm install --force + + - name: Test + run: npm test - name: Build 🔧 run: npm run build - - - run: npm publish --access public - working-directory: ./dist + + - name: Publish to NPM + run: npm publish --access public env: NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} From 968b6ccfc371bf706dabcea36f1be9e7d3752288 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 11:24:58 +0530 Subject: [PATCH 14/20] workflow fixes --- .github/workflows/publish_to_github_packages.yml | 2 +- .github/workflows/publish_to_npm.yml | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish_to_github_packages.yml b/.github/workflows/publish_to_github_packages.yml index 93b843a..68430ad 100644 --- a/.github/workflows/publish_to_github_packages.yml +++ b/.github/workflows/publish_to_github_packages.yml @@ -29,7 +29,7 @@ jobs: - name: Build 🔧 run: npm run build - - name: Publish to GitHub Packages + - name: Publish to GitHub Packages 📦 run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }} diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index b1bb564..312258e 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -12,7 +12,6 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 - registry-url: https://registry.npmjs.org/ - name: Install Dependencies run: npm install --force @@ -23,7 +22,9 @@ jobs: - name: Build 🔧 run: npm run build - - name: Publish to NPM - run: npm publish --access public + - name: Publish to NPM 📦 + run: | + npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN} + npm publish --ignore-scripts env: NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} From 181ae674f86fb6127cf23e4290e134fde2884d57 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 11:32:29 +0530 Subject: [PATCH 15/20] publishConfig removed --- package.json | 4 ---- 1 file changed, 4 deletions(-) diff --git a/package.json b/package.json index 5797f63..d9996d1 100644 --- a/package.json +++ b/package.json @@ -2,10 +2,6 @@ "author": "Divyanshu Shekhar ", "name": "@DevsOnReact/flexboard", "version": "1.0.0", - "publishConfig": { - "registry": "https://npm.pkg.github.com/", - "access": "public" - }, "repository": { "type": "git", "url": "git+https://github.com/DevsOnReact/flexboard.git" From 391fc3f2e2b02ba4cae6df7a0a8c91285ed1d496 Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 11:40:00 +0530 Subject: [PATCH 16/20] scope set --- .github/workflows/publish_to_npm.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index 312258e..4edd789 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -24,6 +24,8 @@ jobs: - name: Publish to NPM 📦 run: | + npm config set scope devsonreact + npm config set access public --global npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN} npm publish --ignore-scripts env: From 6d8f4786883c5a9312874a7cedc559b372c26e7e Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 11:42:54 +0530 Subject: [PATCH 17/20] name changed --- package.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index d9996d1..833dd51 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,8 @@ { - "author": "Divyanshu Shekhar ", - "name": "@DevsOnReact/flexboard", + "name": "flexboard", + "description": "React component library for re-sizable sidebars", "version": "1.0.0", + "author": "Divyanshu Shekhar ", "repository": { "type": "git", "url": "git+https://github.com/DevsOnReact/flexboard.git" @@ -11,7 +12,6 @@ }, "homepage": "https://github.com/DevsOnReact/flexboard#readme", "private": false, - "description": "React component library for re-sizable sidebars", "license": "ISC", "keywords": [ "react", From 06bca73d3a1eefed18eddf55f27176bc4c3b273b Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 12:04:17 +0530 Subject: [PATCH 18/20] npm registry --- .../workflows/publish_to_github_packages.yml | 35 ------------------- .github/workflows/publish_to_npm.yml | 3 +- package.json | 4 +++ 3 files changed, 6 insertions(+), 36 deletions(-) delete mode 100644 .github/workflows/publish_to_github_packages.yml diff --git a/.github/workflows/publish_to_github_packages.yml b/.github/workflows/publish_to_github_packages.yml deleted file mode 100644 index 68430ad..0000000 --- a/.github/workflows/publish_to_github_packages.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: Publish to GitHub Packages 📦 - -on: - release: - types: [created] - -jobs: - build: - runs-on: ubuntu-latest - permissions: - contents: read - packages: write - steps: - - uses: actions/checkout@v3 - # Setup .npmrc file to publish to GitHub Packages - - uses: actions/setup-node@v3 - with: - node-version: '16.x' - registry-url: 'https://npm.pkg.github.com' - # Defaults to the user or organization that owns the workflow file - scope: '@DevsOnReact' - - - name: Install Dependencies - run: npm install --force - - - name: Test - run: npm test - - - name: Build 🔧 - run: npm run build - - - name: Publish to GitHub Packages 📦 - run: npm publish - env: - NODE_AUTH_TOKEN: ${{ secrets.GH_PACKAGE_TOKEN }} diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index 4edd789..f8be02b 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -12,6 +12,7 @@ jobs: - uses: actions/setup-node@v3 with: node-version: 16 + registry-url: 'https://registry.npmjs.org' - name: Install Dependencies run: npm install --force @@ -26,7 +27,7 @@ jobs: run: | npm config set scope devsonreact npm config set access public --global - npm config set //registry.npmjs.org/:_authToken ${NODE_AUTH_TOKEN} + npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} npm publish --ignore-scripts env: NODE_AUTH_TOKEN: ${{secrets.NPM_GITHUB_ACTION_TOKEN}} diff --git a/package.json b/package.json index 833dd51..d63a6ce 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,10 @@ "description": "React component library for re-sizable sidebars", "version": "1.0.0", "author": "Divyanshu Shekhar ", + "publishConfig": { + "registry": "https://registry.npmjs.org", + "access": "public" + }, "repository": { "type": "git", "url": "git+https://github.com/DevsOnReact/flexboard.git" From 926d8a89c8e6063b3e48cefcef30a7f1f99a6fac Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 12:14:46 +0530 Subject: [PATCH 19/20] org added --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index d63a6ce..6216215 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "flexboard", + "name": "@devsonreact/flexboard", "description": "React component library for re-sizable sidebars", "version": "1.0.0", "author": "Divyanshu Shekhar ", From 4012119ff59335c31f4e81bb756b872433c7f48d Mon Sep 17 00:00:00 2001 From: Divyanshu Shekhar Date: Tue, 8 Nov 2022 12:49:46 +0530 Subject: [PATCH 20/20] org changed --- .github/workflows/publish_to_npm.yml | 1 - package.json | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish_to_npm.yml b/.github/workflows/publish_to_npm.yml index f8be02b..2980315 100644 --- a/.github/workflows/publish_to_npm.yml +++ b/.github/workflows/publish_to_npm.yml @@ -25,7 +25,6 @@ jobs: - name: Publish to NPM 📦 run: | - npm config set scope devsonreact npm config set access public --global npm config set //registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN} npm publish --ignore-scripts diff --git a/package.json b/package.json index 6216215..d28d437 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { - "name": "@devsonreact/flexboard", + "name": "@dorbus/flexboard", "description": "React component library for re-sizable sidebars", "version": "1.0.0", "author": "Divyanshu Shekhar ", "publishConfig": { - "registry": "https://registry.npmjs.org", + "registry": "https://registry.npmjs.org/", "access": "public" }, "repository": {