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.
- Loading branch information
Showing
1 changed file
with
23 additions
and
9 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 |
---|---|---|
|
@@ -2,23 +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: 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: | | ||
|
||
- name: Build | ||
run: | | ||
yarn install --immutable --immutable-cache --check-cache | ||
yarn build | ||
yarn pack | ||
yarn publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }} | ||
- 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 }} |