Skip to content

Commit

Permalink
Merge pull request #4 from rndquu/development
Browse files Browse the repository at this point in the history
Test
  • Loading branch information
rndquu authored May 20, 2024
2 parents b6a4f00 + a03cb7d commit f76cd4c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 25 deletions.
15 changes: 14 additions & 1 deletion .github/workflows/bump-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@ 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

- name: Install Node
uses: actions/setup-node@v4
Expand All @@ -24,4 +30,11 @@ jobs:
run: |
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
uses: devops-infra/action-commit-push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
commit_message: "chore: bump version"
35 changes: 13 additions & 22 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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: [email protected]
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 }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -84,5 +84,6 @@
"extends": [
"@commitlint/config-conventional"
]
}
},
"packageManager": "[email protected]"
}

0 comments on commit f76cd4c

Please sign in to comment.