Skip to content

Commit

Permalink
chore: update cicd workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Mar 21, 2024
1 parent 1474e67 commit fd6270a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@ concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true


jobs:

run-js-tests:
runs-on: ubuntu-latest
if: github.repository != 'Exabyte-io/template-definitions'
strategy:
matrix:
node-version: [12.x, 14.x, 16.x]
node-version:
- 14.x
- 20.x

steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout actions repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -35,16 +36,18 @@ jobs:
node-version: ${{ matrix.node-version }}

publish-js-package:
needs: [run-js-tests]
needs:
- run-js-tests

runs-on: ubuntu-latest
if: (github.repository != 'Exabyte-io/template-definitions') && (github.ref_name == 'main')

steps:
- name: Checkout this repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Checkout actions repository
uses: actions/checkout@v2
uses: actions/checkout@v4
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
Expand All @@ -53,7 +56,7 @@ jobs:
- name: Publish JS release
uses: ./actions/js/publish
with:
node-version: 12.21.x
node-version: 14.x
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}

0 comments on commit fd6270a

Please sign in to comment.