Skip to content

Commit

Permalink
Merge pull request #12 from TanStack/fix-ci-release
Browse files Browse the repository at this point in the history
fix: publish build artifacts
  • Loading branch information
crutchcorn committed Aug 31, 2023
2 parents ed6f2a8 + 4e4d8c6 commit d04b8d6
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,24 @@ name: ci
concurrency:
group: publish-${{ github.github.base_ref }}
cancel-in-progress: true
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
on:
workflow_dispatch:
inputs:
tag:
description: override release tag
required: false
push:
branches:
- 'main'
- 'alpha'
- 'beta'
env:
NX_DAEMON: false
NX_VERBOSE_LOGGING: true
NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
jobs:
test-and-publish:
if: github.repository == 'TanStack/form' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/alpha' || github.ref == 'refs/heads/beta')
name: 'Test & Publish'
runs-on: ubuntu-latest
steps:
Expand All @@ -29,7 +37,13 @@ jobs:
node-version: 16.19.0
cache: 'pnpm'
- name: Install dependencies
run: pnpm --filter "./packages/**" --prefer-offline install --no-frozen-lockfile
run: pnpm install --no-frozen-lockfile
- name: Run Tests
uses: nick-fields/retry@v2.8.3
with:
command: pnpm run test:ci --base=${{ github.event.before }}
timeout_minutes: 10
max_attempts: 3
- name: Publish
run: |
git config --global user.name 'Tanner Linsley'
Expand All @@ -38,4 +52,6 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG: ${{ inputs.tag }}

0 comments on commit d04b8d6

Please sign in to comment.