From 6d87503159187144185a86d691f8213fd902b26d Mon Sep 17 00:00:00 2001 From: Jeremy Rajan Date: Sat, 12 Nov 2022 07:24:18 +0000 Subject: [PATCH 1/6] react update --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index e7e4456..8d3497e 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "react-transition-group": "1.2.0" }, "peerDependencies": { - "react": "^16.10.1", - "react-dom": "^16.10.1" + "react": "^18.2.0", + "react-dom": "^18.2.0" } } From 4b114c8a2868944babde73c9924f4b8338cb3a05 Mon Sep 17 00:00:00 2001 From: Jeremy Rajan Date: Sat, 12 Nov 2022 15:27:47 +0800 Subject: [PATCH 2/6] Add actions file --- .github/workflows/node.js.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml new file mode 100644 index 0000000..b1ce32d --- /dev/null +++ b/.github/workflows/node.js.yml @@ -0,0 +1,31 @@ +# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs + +name: Node.js CI + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + + runs-on: ubuntu-latest + + strategy: + matrix: + node-version: [14.x, 16.x, 18.x] + # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ + + steps: + - uses: actions/checkout@v3 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + cache: 'npm' + - run: npm ci + - run: npm run build --if-present + - run: npm test From 4db3a77cf7f2e8ebe16b7b5b738cab19b4a44f19 Mon Sep 17 00:00:00 2001 From: Jeremy Rajan Date: Wed, 16 Nov 2022 10:50:04 +0800 Subject: [PATCH 3/6] Update package.json --- package.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 8d3497e..08b2fe4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "funnies", - "version": "2.1.0", + "name": "@planprice/funnies", + "version": "2.1.1", "description": "Make user's laugh when your app is loading.", "main": "dist/index.js", "scripts": { From 6c3de5a4c93605fb1c76496c9d6770a06a804603 Mon Sep 17 00:00:00 2001 From: Jeremy Rajan Date: Wed, 16 Nov 2022 10:57:11 +0800 Subject: [PATCH 4/6] Create npm-publish.yml --- .github/workflows/npm-publish.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) 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..6cdebaf --- /dev/null +++ b/.github/workflows/npm-publish.yml @@ -0,0 +1,33 @@ +# 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: + release: + types: [created] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 16 + - run: npm ci + - run: npm test + + 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 + env: + NODE_AUTH_TOKEN: ${{secrets.npm_token}} From a66f9d75412098695452f6a1e0bd28b698f59a4f Mon Sep 17 00:00:00 2001 From: Jeremy Rajan Date: Wed, 16 Nov 2022 10:57:21 +0800 Subject: [PATCH 5/6] Delete node.js.yml --- .github/workflows/node.js.yml | 31 ------------------------------- 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/node.js.yml diff --git a/.github/workflows/node.js.yml b/.github/workflows/node.js.yml deleted file mode 100644 index b1ce32d..0000000 --- a/.github/workflows/node.js.yml +++ /dev/null @@ -1,31 +0,0 @@ -# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs - -name: Node.js CI - -on: - push: - branches: [ "master" ] - pull_request: - branches: [ "master" ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x, 16.x, 18.x] - # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ - - steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: 'npm' - - run: npm ci - - run: npm run build --if-present - - run: npm test From 9931c7eb219ff400248aed4429eff5d1eccf26dd Mon Sep 17 00:00:00 2001 From: Jeremy Rajan Date: Wed, 16 Nov 2022 10:58:25 +0800 Subject: [PATCH 6/6] Update package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index ad0da35..42f846f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "funnies", - "version": "2.1.0", + "version": "2.1.1", "lockfileVersion": 1, "requires": true, "dependencies": {