Skip to content

Tabris87 patch 1 workflows #8

Tabris87 patch 1 workflows

Tabris87 patch 1 workflows #8

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Check Version
on:
pull_request:
branches:
- "develop"
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "npm"
- name: Set release version
id: set_version
run: |
echo "version=$(cat package.json | grep -sw '"\bversion\b"' | cut -d '"' -f 4)_nightly" >> "$GITHUB_ENV"
- name: Read release version
id: read_version
run: |
echo "$version"