Merge pull request #1906 from frondoto/robinhood-rblx-ttwo-hims-rcat-… #169
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: Publish Address Book Package | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - packages/address-book/** | |
| - '!packages/address-book/package.json' | |
| - '!packages/address-book/CHANGELOG.md' | |
| - '!packages/address-book/README.md' | |
| jobs: | |
| build: | |
| name: 'Build and Publish Address Book Package' | |
| runs-on: ubuntu-latest | |
| permissions: | |
| id-token: write # Required for OIDC | |
| contents: write | |
| packages: write | |
| steps: | |
| - name: 'Checkout Repository' | |
| uses: actions/checkout@v7 | |
| - name: 'Setup pnpm' | |
| uses: pnpm/action-setup@v6.0.9 | |
| - name: 'Setup Node' | |
| uses: actions/setup-node@v7 | |
| with: | |
| node-version-file: '.nvmrc' | |
| cache: 'pnpm' | |
| registry-url: 'https://registry.npmjs.org' | |
| scope: 'beefyfinance' | |
| - name: 'Install Packages' | |
| run: pnpm install --frozen-lockfile | |
| - name: 'Lint' | |
| run: pnpm --filter @beefyfinance/blockchain-addressbook exec biome ci --reporter github | |
| - name: 'Typecheck' | |
| run: pnpm --filter @beefyfinance/blockchain-addressbook run typecheck | |
| - name: 'Checksum Test' | |
| run: pnpm exec tsx scripts/check-addresses.ts packages/address-book/src | |
| - name: 'Build Package' | |
| run: pnpm --filter @beefyfinance/blockchain-addressbook run build | |
| - name: 'Automated Version Bump' | |
| uses: 'phips28/gh-action-bump-version@v11.0.7' | |
| if: github.repository == 'beefyfinance/beefy-api' | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| PACKAGEJSON_DIR: 'packages/address-book' | |
| - name: 'Publish Package' | |
| if: github.repository == 'beefyfinance/beefy-api' | |
| run: pnpm publish --provenance --no-git-checks | |
| working-directory: packages/address-book |