diff --git a/.github/actions/install/action.yml b/.github/actions/install/action.yml index 363533ab4..ec7b4e4de 100644 --- a/.github/actions/install/action.yml +++ b/.github/actions/install/action.yml @@ -2,6 +2,11 @@ name: Install description: Installs node and dependencies +inputs: + node-version: + description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.' + required: true + runs: using: composite steps: diff --git a/.github/actions/test/action.yml b/.github/actions/test/action.yml index f07e47ac6..c17c75940 100644 --- a/.github/actions/test/action.yml +++ b/.github/actions/test/action.yml @@ -2,11 +2,6 @@ name: Test description: Build & Test -inputs: - node-version: - description: 'Version Spec of the version to use. Examples: 12.x, 10.15.1, >=10.15.0.' - required: true - runs: using: composite steps: diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 6db8be1bd..5109780f2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -14,9 +14,9 @@ jobs: steps: - uses: actions/checkout@v6 - uses: ./.github/actions/install - - uses: ./.github/actions/test with: node-version: ${{ matrix.node-version }} + - uses: ./.github/actions/test - id: nvm run: echo "version=$(cat .nvmrc)" >> $GITHUB_OUTPUT - uses: actions/upload-artifact@v7 @@ -64,7 +64,7 @@ jobs: with: cache: yarn node-version-file: .nvmrc - registry-url: 'https://registry.npmjs.org' + registry-url: "https://registry.npmjs.org" - run: yarn --immutable - uses: actions/download-artifact@v8 with: diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 418253e25..07f545662 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -18,6 +18,6 @@ jobs: steps: - uses: actions/checkout@v6 - uses: ./.github/actions/install - - uses: ./.github/actions/test with: node-version: ${{ matrix.node-version }} + - uses: ./.github/actions/test