moved node version section in README to advanced usage

added link to README
* migrated contents of version-file-workflow.yml to versions.yml
* further refactored parseNodeVersionFile() & tests
* removed type annotations in catch ()
This commit is contained in:
La'Kaleigh Harris 2021-10-05 15:01:26 +00:00 committed by GitHub
parent e471f47826
commit b1ed0c36e7
8 changed files with 113 additions and 17531 deletions

View file

@ -1,33 +0,0 @@
name: version-file-test
on:
push:
branches: [ add-node-version-file-support ]
paths-ignore:
- '**.md'
pull_request:
paths-ignore:
- '**.md'
workflow_dispatch:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup node test
uses: ./
with:
node-version-file: '.nvmrc'
- run: npm ci
- run: npm run build

View file

@ -78,6 +78,17 @@ jobs:
run: __tests__/verify-node.sh "${{ matrix.node-version }}"
shell: bash
version-file:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v2
- name: Setup node test
uses: ./
with:
node-version-file: '.nvmrc'
node-dist:
runs-on: ${{ matrix.os }}
strategy: