fix(@nftx/core): AMM apr logic requires all historical snapshots to work #104
This file contains 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: Deploy | |
on: | |
push: | |
branches: [main] | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: pnpm/[email protected] | |
with: | |
version: 6.30.1 | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '20' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: oleksiyrudenko/gha-git-credentials@v2-latest | |
with: | |
token: '${{ secrets.GH_TOKEN }}' | |
- name: Setup | |
run: git fetch --depth=1 origin +refs/tags/*:refs/tags/* | |
- name: Build | |
run: yarn ci | |
- name: Version | |
env: | |
GH_TOKEN: ${{secrets.GH_TOKEN}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
run: yarn lerna version -y | |
- name: Publish | |
env: | |
GH_TOKEN: ${{secrets.GH_TOKEN}} | |
NPM_TOKEN: ${{secrets.NPM_TOKEN}} | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} | |
run: pnpm publish -r --no-git-checks |