forked from ubiquity/rpc-handler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from rndquu/development
test
- Loading branch information
Showing
4 changed files
with
107 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: Bump Version | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
bump: | ||
description: 'bump type: major, minor or patch' | ||
default: '' | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.10.0" | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Bump version | ||
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,28 +2,37 @@ name: publish-package | |
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
inputs: | ||
newversion: | ||
description: 'Semantic Version Bump Type (major minor patch)' | ||
required: true | ||
|
||
jobs: | ||
release-please: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: google-github-actions/release-please-action@v4 | ||
with: | ||
release-type: node | ||
package-name: "@test117/rpc-handler" | ||
default-branch: main | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-node@v4 | ||
- name: Checkout repository code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install Node | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: "20.10.0" | ||
registry-url: https://registry.npmjs.org/ | ||
- run: | | ||
yarn install --immutable --immutable-cache --check-cache | ||
yarn build | ||
yarn pack | ||
yarn publish --access public | ||
env: | ||
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | ||
|
||
# - 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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters