Upgrade tanstack query to latest (#6290) #2
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: Release "@next"-tagged packages | |
on: | |
push: | |
branches: | |
- 'next' | |
paths: | |
- '.github/setup/*' | |
- '.github/workflows/release-next.yml' | |
- 'packages/**' | |
- '!packages/**/package.json' | |
- '!packages/test/**' | |
jobs: | |
publish: | |
timeout-minutes: 10 | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/setup | |
- name: Check version | |
run: | | |
if [[ $(node -p "require('./packages/server/package.json').version.startsWith('10.')") != true ]]; then | |
echo "Error: The version in packages/server/package.json must start with '10.'" | |
exit 1 | |
fi | |
- run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > $HOME/.npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: pnpm lerna publish --force-publish --canary major --preid rc --dist-tag next --yes | |
- name: Invoke subtree workflow | |
uses: benc-uk/workflow-dispatch@v1 | |
with: | |
workflow: subtree.yml |