Skip to content

Commit f2f0ea1

Browse files
committed
ci(gha): push-only release gating, npm auth hardening, strict tag push; pin pnpm via packageManager and fix Prettier config resolution
1 parent bfc7fea commit f2f0ea1

File tree

3 files changed

+12
-4
lines changed

3 files changed

+12
-4
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ name: CI — test → gate → release
33
on:
44
push:
55
branches:
6-
- '**'
6+
- "**"
77
tags:
8-
- '**'
8+
- "**"
99
pull_request:
1010
types: [opened, synchronize, reopened, ready_for_review]
1111

@@ -87,7 +87,7 @@ jobs:
8787
release:
8888
name: Release
8989
needs: [test, determine_release]
90-
if: needs.determine_release.outputs.is_release == 'true' || needs.determine_release.outputs.is_prerelease == 'true'
90+
if: ${{ github.event_name == 'push' && (needs.determine_release.outputs.is_release == 'true' || needs.determine_release.outputs.is_prerelease == 'true') }}
9191
permissions:
9292
contents: write
9393
runs-on: ubuntu-latest
@@ -112,6 +112,7 @@ jobs:
112112
cache: pnpm
113113
cache-dependency-path: pnpm-lock.yaml
114114
registry-url: https://registry.npmjs.org
115+
always-auth: true
115116
env:
116117
# Ensure the registry is authenticated for publish
117118
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -127,4 +128,4 @@ jobs:
127128
pnpm changeset status
128129
pnpm changeset version
129130
pnpm changeset publish
130-
git push --follow-tags --no-verify || true
131+
git push --follow-tags --no-verify

packages/eslint-config/package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@
1919
"eslint-plugin-sonarjs": "^3.0.2",
2020
"eslint-plugin-unused-imports": "^4.0.0"
2121
},
22+
"devDependencies": {
23+
"@mikecbrant/prettier-config": "workspace:*"
24+
},
2225
"publishConfig": {
2326
"access": "public"
2427
},

pnpm-lock.yaml

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)