Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 14a9e3c

Browse files
authored
Merge pull request #5 from Keyrxng/auto-publish
feat: workflow
2 parents 0d964b0 + b738d51 commit 14a9e3c

File tree

2 files changed

+30
-1
lines changed

2 files changed

+30
-1
lines changed

.github/workflows/publish-package.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: publish-package
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
9+
jobs:
10+
release-please:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: google-github-actions/release-please-action@v4
14+
with:
15+
release-type: node
16+
package-name: "@ubiquitydao/rpc-handler"
17+
default-branch: main
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: "20.10.0"
22+
registry-url: https://registry.npmjs.org/
23+
- run: |
24+
yarn install --immutable --immutable-cache --check-cache
25+
yarn build
26+
yarn pack
27+
yarn publish --access public
28+
env:
29+
NPM_ACCESS_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@
8383
"@commitlint/config-conventional"
8484
]
8585
}
86-
}
86+
}

0 commit comments

Comments
 (0)