mirror of
https://github.com/actions/setup-node.git
synced 2025-06-08 02:22:04 +08:00
created test workflow & nvmrc file
This commit is contained in:
parent
82441b3f82
commit
052bc8b6a3
33
.github/workflows/version-file-workflow.yml
vendored
Normal file
33
.github/workflows/version-file-workflow.yml
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
|
||||
|
||||
name: version-file-test
|
||||
|
||||
|
||||
on:
|
||||
|
||||
push:
|
||||
branches: [ add-node-version-file-support ]
|
||||
pull_request:
|
||||
branches: [ add-node-version-file-support ]
|
||||
|
||||
|
||||
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: actions/setup-node@v2
|
||||
with:
|
||||
node-version-file: '.nvmrc'
|
||||
- run: npm ci
|
||||
- run: npm run build
|
Loading…
Reference in New Issue
Block a user