Skip to content

Commit 36faca8

Browse files
authoredJun 30, 2024··
ci: Optimise GitHub Actions workflow (#746)
1 parent c17f81c commit 36faca8

File tree

3 files changed

+7
-27
lines changed

3 files changed

+7
-27
lines changed
 

‎.github/workflows/ci.yml

+3-12
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,9 @@ jobs:
2525
- name: Checkout
2626
uses: actions/checkout@v4
2727
with:
28-
fetch-depth: '0'
29-
- name: Setup pnpm
30-
uses: pnpm/action-setup@v4
31-
- name: Setup Node
32-
uses: actions/setup-node@v4
33-
with:
34-
node-version-file: .nvmrc
35-
cache: pnpm
36-
- name: Install dependencies
37-
run: pnpm install --frozen-lockfile --prefer-offline
28+
fetch-depth: 0
29+
- name: Setup Tools
30+
uses: tanstack/config/.github/setup@main
3831
- name: Run Tests
3932
run: pnpm run test:ci
4033
- name: Publish
@@ -44,8 +37,6 @@ jobs:
4437
npm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}"
4538
pnpm run cipublish
4639
env:
47-
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4840
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4941
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
50-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5142
TAG: ${{ inputs.tag }}

‎.github/workflows/pr.yml

+4-11
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,11 @@ jobs:
2323
uses: actions/checkout@v4
2424
with:
2525
fetch-depth: 0
26-
- name: Setup pnpm
27-
uses: pnpm/action-setup@v4
28-
- name: Setup Node
29-
uses: actions/setup-node@v4
30-
with:
31-
node-version-file: .nvmrc
32-
cache: pnpm
33-
- name: Install dependencies
34-
run: pnpm install --frozen-lockfile --prefer-offline
26+
- name: Setup Tools
27+
uses: tanstack/config/.github/setup@main
3528
- name: Get base and head commits for `nx affected`
36-
uses: nrwl/nx-set-shas@v3
29+
uses: nrwl/nx-set-shas@v4
3730
with:
38-
main-branch-name: 'main'
31+
main-branch-name: main
3932
- name: Run Checks
4033
run: pnpm run test:pr

‎.nx/workflows/dynamic-changesets.yaml

-4
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.