Update node.js.yml
This commit is contained in:
25
.github/workflows/node.js.yml
vendored
25
.github/workflows/node.js.yml
vendored
@ -15,7 +15,7 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
test:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
@ -35,29 +35,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
|
||||||
|
|
||||||
bump:
|
|
||||||
needs: build
|
|
||||||
if: ${{github.event_name == 'push'}}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: "Checkout source code"
|
|
||||||
uses: "actions/checkout@v2"
|
|
||||||
with:
|
|
||||||
ref: ${{ github.ref }}
|
|
||||||
- name: "Setup Node.js"
|
|
||||||
uses: "actions/setup-node@v1"
|
|
||||||
with:
|
|
||||||
node-version: 12
|
|
||||||
- name: "Automated Version Bump"
|
|
||||||
uses: "phips28/gh-action-bump-version@master"
|
|
||||||
with:
|
|
||||||
tag-prefix: ''
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
needs: bump
|
needs: test
|
||||||
if: ${{github.event_name == 'push'}}
|
if: ${{github.event_name == 'push'}}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
Reference in New Issue
Block a user