Skip to content

Commit

Permalink
feat: run npm bootstrap when submodule updated (#38)
Browse files Browse the repository at this point in the history
* chore: run npm bootstrap when submodule updated

* chore: run boostrap only root

* fix: add checkout

* fix: use permission

* fix: use permission

* chore: change run condition

* chore: change run condition

* chore: change run condition

* chore: change run condition

* chore: change run condition

* chore: configure git

* chore: remove permissions

* chore: try workflow

* chore: try event

* chore: simplify

* chore: simplify
  • Loading branch information
ArtARTs36 authored Dec 14, 2024
1 parent dab963a commit 61f321b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
20 changes: 20 additions & 0 deletions .github/workflows/boostrap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check packages

on:
push:
paths:
- 'packages/**'

jobs:
run-npm-bootstrap:
name: 'Run npm bootstrap in modified package'
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v4

- name: Run npm bootstrap
run: npm run bootstrap
env:
USE_GIT_HTTP_ENDPOINTS: 'true'
2 changes: 1 addition & 1 deletion scripts/git-init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ fi

echo "Init submodules"

if [[ "$CODESPACES" == "true" ]]; then
if [[ "$CODESPACES" == "true" ]] || [[ "$USE_GIT_HTTP_ENDPOINTS" == "true" ]]; then
echo "Modify codespaces environment"
git config --global url."https://".insteadOf git://
git config --global url."https://github.com/".insteadOf [email protected]:
Expand Down

0 comments on commit 61f321b

Please sign in to comment.