mirror of
https://code.forgejo.org/actions/setup-node.git
synced 2025-06-08 13:11:11 +00:00
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:
parent
e471f47826
commit
b1ed0c36e7
8 changed files with 113 additions and 17531 deletions
33
.github/workflows/version-file-workflow.yml
vendored
33
.github/workflows/version-file-workflow.yml
vendored
|
@ -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
|
11
.github/workflows/versions.yml
vendored
11
.github/workflows/versions.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue