File tree Expand file tree Collapse file tree 4 files changed +58
-36
lines changed
Expand file tree Collapse file tree 4 files changed +58
-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 Action Dependencies
24+ working-directory : ./action
25+ run : npm install
26+ - name : Build Action
27+ working-directory : ./action
28+ run : npm run build
29+ - uses : EndBug/add-and-commit@v9
30+ with :
31+ add : " build"
32+ message : " fix(action): build"
33+ # docker:
34+ # runs-on: ubuntu-latest
35+ # steps:
36+ # - name: Checkout
37+ # uses: actions/checkout@v4
38+ # - name: Login to Docker Hub
39+ # uses: docker/login-action@v3
40+ # with:
41+ # username: ${{ secrets.DOCKERHUB_LINGODOTDEV_USERNAME }}
42+ # password: ${{ secrets.DOCKERHUB_LINGODOTDEV_PASSWORD }}
43+ # - name: Set up QEMU
44+ # uses: docker/setup-qemu-action@v3
45+ # - name: Set up Docker Buildx
46+ # uses: docker/setup-buildx-action@v3
47+ # - name: Build Docker image and push
48+ # uses: docker/build-push-action@v6
49+ # with:
50+ # push: true
51+ # platforms: linux/amd64
52+ # context: ./action
53+ # file: ./action/Dockerfile
54+ # 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