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 1919 run : npm install
2020 - name : Run linter
2121 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:
235235 aws-region : ${{ secrets.AWS_REGION }}
236236 - name : Start EC2 runner
237237 id : start-ec2-runner
238- uses : machulav/ec2-github-runner@v2.2.0
238+ uses : machulav/ec2-github-runner@v2
239239 with :
240240 mode : start
241241 github-token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
@@ -271,7 +271,7 @@ jobs:
271271 aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
272272 aws-region : ${{ secrets.AWS_REGION }}
273273 - name : Stop EC2 runner
274- uses : machulav/ec2-github-runner@v2.2.0
274+ uses : machulav/ec2-github-runner@v2
275275 with :
276276 mode : stop
277277 github-token : ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
You can’t perform that action at this time.
0 commit comments