fix(slippage): use volatility slippage to calculate volume slippage (… #79
This file contains hidden or 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
name: Release Please | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
env: | |
NODE_VERSION: lts/jod | |
permissions: | |
contents: write | |
pull-requests: write | |
jobs: | |
release-please: | |
runs-on: ubuntu-latest | |
steps: | |
# 1️⃣ Checkout the repo | |
- uses: actions/checkout@v4 | |
# 2️⃣ Setup pnpm | |
- uses: pnpm/action-setup@v4 | |
with: | |
version: 10.8.0 | |
# 3️⃣ Setup Node | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: lts/jod | |
cache: "pnpm" | |
# 4️⃣ Install dependencies | |
- run: pnpm install --frozen-lockfile | |
# 5️⃣ Build all packages (using turbo) | |
- run: pnpm turbo run build --filter=./packages/** | |
# 6️⃣ Run release-please | |
- uses: googleapis/release-please-action@v4 | |
id: release | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
target-branch: main | |
config-file: .release-please-config.json | |
manifest-file: .release-please-manifest.json | |
# 7️⃣ Setup npm auth | |
- name: Setup npm auth | |
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# 8️⃣ Publish changed packages | |
- name: Publish changed packages | |
if: steps.release.outputs.releases_created == 'true' | |
run: pnpm publish -r --filter="./packages/**" --tag latest --no-git-checks |