Skip to content

Commit 23e49e8

Browse files
committed
ci: adding --first-release tag
1 parent 62ad341 commit 23e49e8

File tree

2 files changed

+10
-5
lines changed

2 files changed

+10
-5
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,12 +55,15 @@ jobs:
5555
run: npx nx affected --target=typecheck --parallel=3
5656
continue-on-error: false
5757

58+
- name: Clear Jest cache
59+
run: yarn jest --clearCache
60+
5861
- name: Run tests on affected projects
5962
run: npx nx affected --target=test --parallel=3 --coverage
6063
continue-on-error: false
6164

6265
- name: Run Nx release dry-run
63-
run: npx nx release --dry-run --verbose
66+
run: npx nx release --first-release --dry-run --verbose
6467

6568
# Job that runs after merge (on push to master)
6669
post-merge:
@@ -72,8 +75,8 @@ jobs:
7275
uses: actions/checkout@v4
7376
- name: 🚀 Run Nx Release
7477
run: |
75-
npx nx release --skip-publish --verbose
76-
npx nx release publish --skip-existing --verbose
78+
npx nx release --first-release --skip-publish --verbose
79+
npx nx release --first-release publish --skip-existing --verbose
7780
env:
7881
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
7982
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@
3232
"verbose": true,
3333
"testPathIgnorePatterns": [
3434
"/node_modules/",
35-
"packages/suir-component-mapper/"
35+
"packages/suir-component-mapper/",
36+
"/.nx/"
3637
],
3738
"setupFilesAfterEnv": [
3839
"<rootDir>/config/jest.setup.js"
@@ -53,7 +54,8 @@
5354
"\\.(css|scss)$": "identity-obj-proxy"
5455
},
5556
"modulePathIgnorePatterns": [
56-
"<rootDir>/templates/"
57+
"<rootDir>/templates/",
58+
"<rootDir>/.nx/"
5759
],
5860
"globalSetup": "<rootDir>/config/globalSetup.js"
5961
},

0 commit comments

Comments
 (0)