Skip to content

chore: main as default branch #257

chore: main as default branch

chore: main as default branch #257

Workflow file for this run

name: CICD
on: [push]
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
run-tests:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [10.x, 12.x, 14.x, 16.x]
steps:
- name: Checkout this repository
uses: actions/checkout@v2
with:
lfs: true
- name: Checkout actions repository
uses: actions/checkout@v2
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
- name: Run tests
uses: ./actions/js/test
with:
node-version: ${{ matrix.node-version }}
- name: Validate JS Packages and Codebase
uses: ./actions/js/validate
with:
node-version: 14.19.x
package-directory: ./
publish:
needs: run-tests
runs-on: ubuntu-latest
if: github.ref_name == 'main'
steps:
- name: Checkout this repository
uses: actions/checkout@v2
with:
lfs: true
- name: Checkout actions repository
uses: actions/checkout@v2
with:
repository: Exabyte-io/actions
token: ${{ secrets.BOT_GITHUB_TOKEN }}
path: actions
- name: Publish release
uses: ./actions/js/publish
with:
node-version: 12.21.x
npm-token: ${{ secrets.NPM_TOKEN }}
github-token: ${{ secrets.BOT_GITHUB_TOKEN }}