From 03a127e7620b7919ea256975c5e96fbde9e5c8d5 Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:01:46 +0300 Subject: [PATCH 1/8] ci: test --- .github/workflows/bump-version.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index dd559be..72beba5 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -25,3 +25,10 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" yarn version --new-version ${{ github.event.inputs.bump }} + + - name: Commit & Push changes + uses: actions-js/push@master + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + message: "chore: bump version" + branch: ${{ github.event.repository.default_branch }} From 2c36d862d5da6fa4a1471b19aea0d0e04273f6c4 Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:07:41 +0300 Subject: [PATCH 2/8] ci: test --- .github/workflows/bump-version.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 72beba5..1324b41 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -25,6 +25,7 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" yarn version --new-version ${{ github.event.inputs.bump }} + git add --all - name: Commit & Push changes uses: actions-js/push@master From 64e1954f659f166a5cb908d2a690f9e61f5d87a0 Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:10:54 +0300 Subject: [PATCH 3/8] ci: test --- .github/workflows/bump-version.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 1324b41..c4a0808 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -28,8 +28,7 @@ jobs: git add --all - name: Commit & Push changes - uses: actions-js/push@master + uses: devops-infra/action-commit-push@master with: github_token: ${{ secrets.GITHUB_TOKEN }} - message: "chore: bump version" - branch: ${{ github.event.repository.default_branch }} + commit_message: "chore: bump version" From eaa5543bd8042d93064d522debf9ee40c3982685 Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:15:44 +0300 Subject: [PATCH 4/8] ci: test --- .github/workflows/bump-version.yml | 3 ++- package.json | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index c4a0808..6d321e2 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -22,9 +22,10 @@ jobs: - name: Bump version run: | + yarn --version git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" - yarn version --new-version ${{ github.event.inputs.bump }} + yarn version ${{ github.event.inputs.bump }} git add --all - name: Commit & Push changes diff --git a/package.json b/package.json index 627f367..97fbe0d 100644 --- a/package.json +++ b/package.json @@ -84,5 +84,6 @@ "extends": [ "@commitlint/config-conventional" ] - } + }, + "packageManager": "yarn@4.2.2" } From bd5c7e45defc69c0074c2d3d5f53b7ef440f1de1 Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:17:04 +0300 Subject: [PATCH 5/8] ci: test --- .github/workflows/bump-version.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 6d321e2..61b1246 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -14,6 +14,9 @@ jobs: - name: Checkout repository code uses: actions/checkout@v4 + - name: Enable corepack + run: corepack enable + - name: Install Node uses: actions/setup-node@v4 with: From 3b9bed9e7320cdab0874b08e9d54b5bc94a226ee Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:19:18 +0300 Subject: [PATCH 6/8] ci: test --- .github/workflows/bump-version.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/bump-version.yml b/.github/workflows/bump-version.yml index 61b1246..5b55475 100644 --- a/.github/workflows/bump-version.yml +++ b/.github/workflows/bump-version.yml @@ -13,7 +13,10 @@ jobs: steps: - name: Checkout repository code uses: actions/checkout@v4 + with: + fetch-depth: 0 + # needed to use yarn v4 - name: Enable corepack run: corepack enable @@ -25,7 +28,6 @@ jobs: - name: Bump version run: | - yarn --version git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" yarn version ${{ github.event.inputs.bump }} From 4400e5348729f984d8dc7fa50ae0baad679ac92a Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 14:20:00 +0000 Subject: [PATCH 7/8] chore: bump version Files changed: M package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 97fbe0d..90be8d9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@test117/rpc-handler", - "version": "1.0.0", + "version": "1.0.1", "description": "Uses Chainlist's RPC collection racing them returning the lowest latency RPC", "main": "dist/cjs/rpc-handler.js", "module": "dist/esm/rpc-handler.js", From a03cb7de659de88a46798ac9802b893c216c0538 Mon Sep 17 00:00:00 2001 From: rndquu Date: Mon, 20 May 2024 17:28:15 +0300 Subject: [PATCH 8/8] ci: test --- .github/workflows/publish-package.yml | 35 ++++++++++----------------- 1 file changed, 13 insertions(+), 22 deletions(-) diff --git a/.github/workflows/publish-package.yml b/.github/workflows/publish-package.yml index 353cc89..8903904 100644 --- a/.github/workflows/publish-package.yml +++ b/.github/workflows/publish-package.yml @@ -1,14 +1,13 @@ -name: publish-package +name: Publish Package on: workflow_dispatch: - inputs: - newversion: - description: 'Semantic Version Bump Type (major minor patch)' - required: true + push: + branches: + - main jobs: - release-please: + publish-package: runs-on: ubuntu-latest steps: - name: Checkout repository code @@ -20,19 +19,11 @@ jobs: node-version: "20.10.0" registry-url: https://registry.npmjs.org/ - # - name: Build - # run: | - # yarn install --immutable --immutable-cache --check-cache - # yarn build - # yarn pack - - - name: Version and publish to npm - id: npm-bump - uses: bcomnes/npm-bump@v2 - with: - git_email: github-actions@github.com - git_username: github-actions - newversion: ${{ github.event.inputs.newversion }} - push_version_commit: true - github_token: ${{ secrets.GITHUB_TOKEN }} - npm_token: ${{ secrets.NPM_ACCESS_TOKEN }} + - name: Build & Publish + run: | + yarn install --immutable --immutable-cache --check-cache + yarn build + yarn pack + yarn publish --access public + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}