Skip to content

Commit

Permalink
update workflows after checking them in react component repo
Browse files Browse the repository at this point in the history
  • Loading branch information
derberg committed Jan 19, 2021
1 parent 132db06 commit 1d3d7c0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/if-nodejs-pr-testing.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#This action is centrally managed in https://github.com/asyncapi/.github/
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
#It does magic only if there is package.json file in the root of the project
name: PR testing if Node project
name: PR testing - if Node project

on:
pull_request:
Expand Down Expand Up @@ -29,7 +29,7 @@ jobs:
node-version: 14
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
run: npm install --loglevel verbose
- if: steps.packagejson.outputs.exists == 'true'
name: Test
run: npm test
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/if-nodejs-release.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
#This action is centrally managed in https://github.com/asyncapi/.github/
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
#It does magic only if there is package.json file in the root of the project
name: Release in Node project
name: Release - if Node project

on:
push:
Expand Down Expand Up @@ -63,4 +60,4 @@ jobs:
GIT_AUTHOR_EMAIL: [email protected]
GIT_COMMITTER_NAME: asyncapi-bot
GIT_COMMITTER_EMAIL: [email protected]
run: npm run release
run: npm run release
7 changes: 6 additions & 1 deletion .github/workflows/if-nodejs-version-bump.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#This action is centrally managed in https://github.com/asyncapi/.github/
#Don't make changes to this file in this repo as they will be overwritten with changes made to the same file in above mentioned repo
#It does magic only if there is package.json file in the root of the project
name: Version bump if Node project
name: Version bump - if Node.js project

on:
release:
Expand All @@ -15,9 +15,14 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v2
with:
ref: master
- name: Check if Node.js project and has package.json
id: packagejson
run: test -e ./package.json && echo "::set-output name=exists::true" || echo "::set-output name=exists::false"
- if: steps.packagejson.outputs.exists == 'true'
name: Install dependencies
run: npm install
- if: steps.packagejson.outputs.exists == 'true'
name: Assets generation
run: npm run generate:assets
Expand Down

0 comments on commit 1d3d7c0

Please sign in to comment.