File tree Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Expand file tree Collapse file tree 3 files changed +20
-1
lines changed Original file line number Diff line number Diff line change 32
32
node : [24]
33
33
os : [ubuntu-latest]
34
34
steps :
35
+ - name : Harden the runner
36
+ uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
37
+ with :
38
+ egress-policy : block
39
+ allowed-endpoints : >
40
+ api.github.com:443
41
+ github.com:443
42
+ release-assets.githubusercontent.com:443
43
+ registry.npmjs.org:443
35
44
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
36
45
with :
37
46
persist-credentials : ' false'
@@ -91,6 +100,15 @@ jobs:
91
100
vite : ' rolldown-vite'
92
101
svelte : ' current'
93
102
steps :
103
+ - name : Harden the runner
104
+ uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
105
+ with :
106
+ egress-policy : block
107
+ allowed-endpoints : >
108
+ api.github.com:443
109
+ github.com:443
110
+ release-assets.githubusercontent.com:443
111
+ registry.npmjs.org:443
94
112
- uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
95
113
with :
96
114
persist-credentials : ' false'
Original file line number Diff line number Diff line change 63
63
publish : pnpm exec changeset tag # only create git tag, publish to registry happens later
64
64
env :
65
65
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # needed for some github api calls changesets makes
66
+
66
67
publish :
67
68
needs : changesets
68
69
if : needs.changesets.outputs.published == 'true'
@@ -103,6 +104,7 @@ jobs:
103
104
TAG=latest
104
105
fi
105
106
107
+ GIT_STATUS=$(git status --porcelain=v1)
106
108
if [[ "$GIT_STATUS" != "" ]]; then
107
109
echo "dirty git state, aborting publish"
108
110
echo "$GIT_STATUS";
Original file line number Diff line number Diff line change 17
17
"lint" : " pnpm check:lint --fix" ,
18
18
"format" : " pnpm check:format --write" ,
19
19
"fixup" : " run-s lint format" ,
20
- "release" : " pnpm changeset publish" ,
21
20
"prepare" : " husky" ,
22
21
"playwright" : " playwright-core" ,
23
22
"generate:types" : " pnpm --filter \" ./packages/*\" --parallel generate:types" ,
You can’t perform that action at this time.
0 commit comments