Skip to content

HotFix: Caching Symbol Map #42

HotFix: Caching Symbol Map

HotFix: Caching Symbol Map #42

Workflow file for this run

name: Publish Package
on:
push:
tags:
- 'v*' # Triggers on version tags like v1.0.0
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Install Dependencies
run: bun install
- name: Build
run: bun run build
- name: Set Version from Tag
run: |
VERSION=${GITHUB_REF#refs/tags/}
npm version $VERSION --no-git-tag-version
working-directory: packages/agent-sdk
- name: Configure NPM Authentication
run: |
echo "@bitteprotocol:registry=https://registry.npmjs.org/" > ~/.npmrc
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Publish with npm
run: |
cd packages/agent-sdk
npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}