Skip to content

A one-of-a-kind resume builder that keeps your privacy in mind. Completely secure, customizable, portable, open-source and free forever. Try it out today!

update CI workflow

Amruth Pillai1c36ac1d681f
diff --git a/.github/workflows/lint-test-build.yml b/.github/workflows/lint-test-build.yml
index e8850f063..b1764f32f 100644
--- a/.github/workflows/lint-test-build.yml
+++ b/.github/workflows/lint-test-build.yml
@@ -13,39 +13,32 @@ on:
branches:
- main
+permissions:
+ actions: read
+ contents: read
+
jobs:
main:
runs-on: ubuntu-latest
steps:
- - name: Checkout Repository
- uses: actions/[email protected]
+ - uses: actions/[email protected]
with:
- fetch-depth: 2
-
- - name: Setup pnpm
- uses: pnpm/[email protected]
+ fetch-depth: 0
- - name: Setup Node.js
- uses: actions/[email protected]
+ - uses: pnpm/[email protected]
with:
- cache: "pnpm"
- node-version: 20.17.0
+ version: 9
- - name: Install Dependencies
- run: pnpm install --frozen-lockfile
+ - run: pnpm dlx nx-cloud start-ci-run --distribute-on="4 linux-medium-js" --stop-agents-after="build"
- - name: Lint
- run: pnpm lint
+ - uses: actions/[email protected]
+ with:
+ node-version: 22
+ cache: "pnpm"
- - name: Format
- run: pnpm format:check
+ - run: pnpm install --frozen-lockfile
- - name: Test
- run: pnpm test
+ - uses: nrwl/[email protected]
- - name: Build
- run: pnpm build
- env:
- NODE_ENV: production
- NX_CLOUD_ACCESS_TOKEN: ${{ secrets.NX_CLOUD_ACCESS_TOKEN }}
+ - run: pnpm exec nx affected -t lint format:check test build
diff --git a/nx.json b/nx.json
index 47abf674f..e8495803e 100644
--- a/nx.json
+++ b/nx.json
@@ -34,7 +34,7 @@
"!{projectRoot}/test-setup.[jt]s",
"!{projectRoot}/**/*.stories.@(js|jsx|ts|tsx|mdx)"
],
- "sharedGlobals": []
+ "sharedGlobals": ["{workspaceRoot}/.github/workflows/lint-test-build.yml"]
},
"generators": {
"@nx/react": {
diff --git a/package.json b/package.json
index 6f9170b6d..b71892500 100644
--- a/package.json
+++ b/package.json
@@ -239,7 +239,7 @@
"zundo": "^2.1.0",
"zustand": "^4.5.5"
},
- "packageManager": "[email protected]+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1",
+ "packageManager": "[email protected]+sha512.1f79bc245a66eb0b07c5d4d83131240774642caaa86ef7d0434ab47c0d16f66b04e21e0c086eb61e62c77efc4d7f7ec071afad3796af64892fae66509173893a",
"engines": {
"node": ">=20.13.1"
},