From 15d52fe7e6f7a5bfbbda6072981756b950fd51c1 Mon Sep 17 00:00:00 2001 From: Bishakh Ghosh Date: Sat, 3 Jun 2023 16:00:17 +0530 Subject: [PATCH 1/2] add npm publish ci and rename to @easyauth.io/react --- .github/workflows/npm-publish.yml | 23 +++++++++++++++++++++++ README.md | 2 +- package.json | 2 +- 3 files changed, 25 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/npm-publish.yml diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml new file mode 100644 index 0000000..a66433e --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,23 @@ +# 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: Publish NPM Package + +on: + release: + types: [published] + +jobs: + publish-npm: + needs: 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 ci + - run: npm publish --access=public + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} diff --git a/README.md b/README.md index e75d083..f8bceb1 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ EasyAuth is a simple and quick way to add authentication and user management to ### Installation ```sh -npm install easyauth-react +npm install @easyauth.io/react ``` ## Usage diff --git a/package.json b/package.json index 2fa7c23..f4e47e3 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@easyauth.io/easyauth-react", + "name": "@easyauth.io/react", "version": "1.0.0", "description": "React SDK for EasyAuth", "main": "dist/index.js", From 5a354ea628fa47f6e5beab61ab512d11a8053cf0 Mon Sep 17 00:00:00 2001 From: Bishakh Ghosh Date: Sat, 3 Jun 2023 16:02:09 +0530 Subject: [PATCH 2/2] revert name change --- README.md | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f8bceb1..abc478b 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ EasyAuth is a simple and quick way to add authentication and user management to ### Installation ```sh -npm install @easyauth.io/react +npm install @easyauth.io/easyauth-react ``` ## Usage diff --git a/package.json b/package.json index f4e47e3..2fa7c23 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "@easyauth.io/react", + "name": "@easyauth.io/easyauth-react", "version": "1.0.0", "description": "React SDK for EasyAuth", "main": "dist/index.js",