File tree Expand file tree Collapse file tree 4 files changed +64
-36
lines changed
Expand file tree Collapse file tree 4 files changed +64
-36
lines changed Original file line number Diff line number Diff line change 1+ name : Build Action
2+
3+ on :
4+ workflow_dispatch :
5+ push :
6+ paths :
7+ - action/**
8+ - action.yml
9+ branches :
10+ - main
11+ - gha
12+
13+ jobs :
14+ build :
15+ runs-on : ubuntu-latest
16+ steps :
17+ - name : Checkout
18+ uses : actions/checkout@v4
19+ - name : Use Node.js
20+ uses : actions/setup-node@v2
21+ with :
22+ node-version : 18.20.4
23+ - name : Install pnpm
24+ uses : pnpm/action-setup@v4
25+ id : pnpm-install
26+ with :
27+ version : 9.12.3
28+ run_install : false
29+ - name : Install Action Dependencies
30+ working-directory : ./action
31+ run : pnpm install
32+ - name : Build Action
33+ working-directory : ./action
34+ run : pnpm build
35+ - uses : EndBug/add-and-commit@v9
36+ with :
37+ add : " build"
38+ message : " fix(action): build"
39+ # docker:
40+ # runs-on: ubuntu-latest
41+ # steps:
42+ # - name: Checkout
43+ # uses: actions/checkout@v4
44+ # - name: Login to Docker Hub
45+ # uses: docker/login-action@v3
46+ # with:
47+ # username: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}
48+ # password: ${{ secrets.DOCKERHUB_LINGODOTDEV_PASSWORD }}
49+ # - name: Set up QEMU
50+ # uses: docker/setup-qemu-action@v3
51+ # - name: Set up Docker Buildx
52+ # uses: docker/setup-buildx-action@v3
53+ # - name: Build Docker image and push
54+ # uses: docker/build-push-action@v6
55+ # with:
56+ # push: true
57+ # platforms: linux/amd64
58+ # context: ./action
59+ # file: ./action/Dockerfile
60+ # tags: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}/ci-action:latest
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -7,8 +7,8 @@ branding:
77 color : " black"
88
99runs :
10- using : " docker "
11- image : " action/Dockerfile "
10+ using : " node22 "
11+ image : " action/build/index.js "
1212 env :
1313 LINGODOTDEV_API_KEY : ${{ inputs.api-key }}
1414 LINGODOTDEV_PULL_REQUEST : ${{ inputs.pull-request }}
Original file line number Diff line number Diff line change 1111 "module" : " NodeNext" ,
1212 "target" : " ESNext" ,
1313 "rootDir" : " src" ,
14- "outDir" : " build"
14+ "outDir" : " build" ,
15+ "types" : [" node" ]
1516 },
1617 "include" : [" src/**/*.ts" , " src/**/*.tsx" ],
1718 "exclude" : [" src/**/*.spec.ts" , " src/**/*.spec.tsx" ]
You can’t perform that action at this time.
0 commit comments