Skip to content

ci: more cleanup (#101) #4

ci: more cleanup (#101)

ci: more cleanup (#101) #4

Workflow file for this run

name: Release
on:
push:
branches: [main, alpha, beta, rc]
concurrency:
group: publish-${{ github.github.base_ref }}
cancel-in-progress: true
permissions:
contents: write
id-token: write
pull-requests: write
jobs:
release:
name: Release
if: github.repository_owner == 'TanStack'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/[email protected]
with:
fetch-depth: 0
- name: Setup Tools
uses: tanstack/config/.github/setup@main
- name: Run Build
run: pnpm run build
- name: Run Tests
run: pnpm -r test:types && pnpm -r test:lib
- name: Publish
run: |
pnpm install --no-frozen-lockfile
git config --global user.name 'Tanner Linsley'
git config --global user.email '[email protected]'
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
pnpm run cipublish
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}