Skip to content

fix: apply recent query updates #61

fix: apply recent query updates

fix: apply recent query updates #61

on:
push:
branches:
- dev
permissions:
contents: write
pull-requests: write
name: Release packages
jobs:
release-please:
runs-on: ubuntu-latest
outputs:
releases_created: ${{ steps.release.outputs.releases_created }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
token: ${{ secrets.LEATHER_BOT }}
default-branch: dev
# TODO(leather-wallet/mono#133): get this back when release-please-action@4 gets an update for pnpm node workspaces.
# steps:
# - uses: google-github-actions/release-please-action@v4
# id: release
# with:
# # this assumes that you have created a personal access token (PAT)
# token: ${{ secrets.LEATHER_BOT }}
# # optional. customize path to release-please-config.json
# config-file: release-please-config.json
# # optional. customize path to .release-please-manifest.json
# manifest-file: .release-please-manifest.json
# # Our target branch should be `dev`
# target-branch: dev
# The logic below handles the npm publication:
deploy:
needs: release-please
runs-on: ubuntu-latest
# these if statements ensure that a publication only occurs when
# a new release is created:
if: needs.release-please.outputs.releases_created
steps:
- uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v3
with:
version: '^8.15'
- uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
cache: 'pnpm'
- run: pnpm install
- run: pnpm ts:build
- run: pnpm -r publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}