Skip to content

Merge pull request #5 from Keyrxng/auto-publish #20

Merge pull request #5 from Keyrxng/auto-publish

Merge pull request #5 from Keyrxng/auto-publish #20

name: publish-package
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v4
with:
release-type: node
package-name: "@ubiquitydao/rpc-handler"
default-branch: main
- uses: actions/checkout@v4
- 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 }}