Skip to content

chore: bump dapp-kit to 2.3.2 (#639) #126

chore: bump dapp-kit to 2.3.2 (#639)

chore: bump dapp-kit to 2.3.2 (#639) #126

name: Publish GitHub NPM Packages
on:
push:
tags:
- '*'
permissions:
contents: read
jobs:
publish-to-github-packages:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Setup Node.js for GitHub Packages
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com
cache: 'yarn'
- run: npm install -g npm@11.5.1
- run: yarn && yarn install:all
- run: yarn build
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Publish VeChain-Kit to GitHub Packages
run: |
cd packages/vechain-kit
yarn version --immediate ${GITHUB_REF_NAME}
npm publish --tag latest
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
publish-to-npmjs:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
- name: Setup Node.js for npmjs.org
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 20
registry-url: https://registry.npmjs.org
cache: 'yarn'
- run: npm install -g npm@11.5.1
- run: yarn && yarn install:all
- run: yarn build
env:
NODE_OPTIONS: '--max-old-space-size=4096'
- name: Publish VeChain-Kit to npmjs.org
run: |
cd packages/vechain-kit
yarn version --immediate ${GITHUB_REF_NAME}
npm publish --tag latest