File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ on : push
2+ name : Build and Publish
3+ jobs :
4+ all :
5+ name : Build and Publish
6+ runs-on : ubuntu-latest
7+ steps :
8+ - uses : actions/checkout@master
9+ - name : Shell Linter
10+ uses : azohra/shell-linter@v0.3.0
11+ - name : Docker Lint
12+ uses : luke142367/Docker-Lint-Action@v1.0.0
13+ env :
14+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
15+ TARGET : Dockerfile
16+ - name : Build Docker
17+ run : docker build -t test .
18+ - name : Cache node_modules
19+ id : cache-modules
20+ uses : actions/cache@v1
21+ with :
22+ path : node_modules
23+ key : ${{ runner.OS }}-build-${{ hashFiles('package.json') }}
24+ - name : Build
25+ if : steps.cache-modules.outputs.cache-hit != 'true'
26+ run : npm install
27+ - name : Test
28+ run : npm test
29+ - name : Publish
30+ if : github.ref == 'refs/heads/master'
31+ uses : mikeal/merge-release@master
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
34+ NPM_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
You can’t perform that action at this time.
0 commit comments