Skip to content

Commit b28b6b0

Browse files
authored
Merge pull request #551 from ForgeRock/update-publish-steps
chore: fix-publish-steps
2 parents 9088443 + 262bb12 commit b28b6b0

5 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/actions/publish-beta/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ runs:
1010

1111
- name: Run Builds
1212
shell: bash
13-
run: pnpm nx run-many -t build --no-agents
13+
run: pnpm nx run-many -t build --no-agents --skip-nx-cache
1414

1515
- name: Generate API Docs
1616
shell: bash

.github/actions/publish-release/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ runs:
3232
3333
- name: Run Builds
3434
shell: bash
35-
run: pnpm nx run-many -t build --no-agents
35+
run: pnpm nx run-many -t build --no-agents --skip-nx-cache
3636

3737
- name: Generate API Docs
3838
shell: bash

.github/workflows/publish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,13 @@ jobs:
9494
retention-days: 30
9595

9696
snapshot:
97-
if: ${{ github.event_name == 'workflow_dispatch' }}
98-
name: Publish snapshot/beta to npm
97+
# Guard against publishing snapshots from the protected release branch.
98+
if: >-
99+
${{
100+
github.event_name == 'workflow_dispatch' &&
101+
github.ref != 'refs/heads/changeset-release/main'
102+
}}
103+
name: Publish Snapshots
99104
permissions:
100105
contents: write
101106
id-token: write

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,4 +93,5 @@ GEMINI.md
9393
**/GEMINI.md
9494

9595
.claude/worktrees
96-
.claude/settings.local.json
96+
.claude/settings.local.json
97+
.opensource

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"scripts": {
1616
"build": "nx sync && nx affected --target=build",
1717
"changeset": "changeset",
18-
"ci:release": "pnpm nx run-many -t build --no-agents && pnpm publish -r --no-git-checks && changeset tag",
18+
"ci:release": "pnpm nx run-many -t build --no-agents --skip-nx-cache && pnpm publish -r --no-git-checks && changeset tag",
1919
"ci:version": "changeset version && pnpm install --no-frozen-lockfile && pnpm nx format:write --uncommitted",
2020
"circular-dep-check": "madge --circular .",
2121
"clean": "shx rm -rf ./{coverage,dist,docs,node_modules,tmp}/ ./{packages,e2e}/*/{dist,node_modules}/ ./e2e/node_modules/ && git clean -fX -e \"!.env*,nx-cloud.env\" -e \"!**/GEMINI.md\"",

0 commit comments

Comments
 (0)