Skip to content

Commit 91e38ed

Browse files
authored
ci: fix draft deployment (#786)
* ci: [wip] remove log into seperate file * meta: add netlify-cli as devDependency * Update draft.yml * ci: undo most changes to draft job
1 parent 277dd9c commit 91e38ed

File tree

3 files changed

+5013
-134
lines changed

3 files changed

+5013
-134
lines changed

.github/workflows/draft.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
3636
shell: bash
3737
run: |
38-
netlify deploy --dir build --message '${{ github.event.commits[0].message }}' > log.tmp.txt 2>&1
38+
yarn netlify deploy --dir build --message '${{ github.event.commits[0].message }}' > log.tmp.txt 2>&1
3939
cat log.tmp.txt | grep -E 'Website draft URL:' > log.txt
4040
- name: Read deployment log
4141
if: ${{ !github.event.pull_request.head.repo.fork && !startsWith(github.ref, 'refs/heads/renovate') }}

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"eslint-plugin-react-hooks": "5.2.0",
5353
"husky": "9.1.7",
5454
"lint-staged": "15.4.3",
55+
"netlify-cli": "19.0.2",
5556
"prettier": "3.3.3",
5657
"typescript": "5.8.2"
5758
},

0 commit comments

Comments
 (0)