File tree Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Expand file tree Collapse file tree 2 files changed +2
-27
lines changed Original file line number Diff line number Diff line change 19
19
run : npm install
20
20
- name : Run linter
21
21
run : npm run lint
22
- package :
23
- name : Package distribution files
24
- runs-on : ubuntu-latest
25
- needs :
26
- - lint-code
27
- steps :
28
- - name : Checkout
29
- uses : actions/checkout@v2
30
- with :
31
- ref : ${{ github.head_ref }}
32
- - name : Cache dependencies
33
- uses : actions/cache@v2
34
- with :
35
- path : ' **/node_modules'
36
- key : ec2-github-runner-${{ hashFiles('**/package-lock.json') }}
37
- - name : Install packages
38
- run : npm install
39
- - name : Package
40
- run : npm run package
41
- - name : Commit
42
- run : |
43
- git config --global user.name "GitHub Actions"
44
- git add dist/
45
- git commit -m "Update dist" || echo "No changes to commit"
46
- git push origin ${{ github.head_ref }}
Original file line number Diff line number Diff line change @@ -235,7 +235,7 @@ jobs:
235
235
aws-region : ${{ secrets.AWS_REGION }}
236
236
- name : Start EC2 runner
237
237
id : start-ec2-runner
238
- uses : machulav/ec2-github-runner@v2.2.0
238
+ uses : machulav/ec2-github-runner@v2
239
239
with :
240
240
mode : start
241
241
github-token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
@@ -271,7 +271,7 @@ jobs:
271
271
aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
272
272
aws-region : ${{ secrets.AWS_REGION }}
273
273
- name : Stop EC2 runner
274
- uses : machulav/ec2-github-runner@v2.2.0
274
+ uses : machulav/ec2-github-runner@v2
275
275
with :
276
276
mode : stop
277
277
github-token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments