Skip to content

Commit 79f9e19

Browse files
committed
new workflow for build
1 parent af5165f commit 79f9e19

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/plugin-build.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,5 +28,21 @@ jobs:
2828
- name: Install dependencies
2929
run: composer install --no-dev -o
3030

31-
- name: Deploy to main-built branch
32-
run: bash <(curl -s "https://raw.githubusercontent.com/Automattic/vip-go-build/master/deploy.sh")
31+
- name: Setup Node
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: 20.11
35+
36+
- name: Install packages
37+
run: yarn install --immutable
38+
39+
- name: JS build
40+
run: yarn build
41+
42+
- name: Create and push built branch
43+
run: |
44+
git checkout -b main-built
45+
git add -A # Stage all changes, including untracked files
46+
git ls-files --ignored --exclude-standard -o -z | xargs -0 git rm --cached # Remove ignored files from the index
47+
git commit -m "Built WordPress plugin"
48+
git push origin main-built

0 commit comments

Comments
 (0)