Update Actions references from node-version 16 to 20 (#54403)
This commit is contained in:
@@ -190,7 +190,7 @@ pipeline {
|
|||||||
agent { label "${PLATFORM}" }
|
agent { label "${PLATFORM}" }
|
||||||
stages {
|
stages {
|
||||||
stage('test') {
|
stage('test') {
|
||||||
tools { nodejs "node-16" }
|
tools { nodejs "node-20" }
|
||||||
steps {
|
steps {
|
||||||
dir("scripts/myapp") {
|
dir("scripts/myapp") {
|
||||||
sh(script: "npm install -g bats")
|
sh(script: "npm install -g bats")
|
||||||
@@ -222,7 +222,7 @@ jobs:
|
|||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: {% data reusables.actions.action-setup-node %}
|
- uses: {% data reusables.actions.action-setup-node %}
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- run: npm install -g bats
|
- run: npm install -g bats
|
||||||
- run: bats tests
|
- run: bats tests
|
||||||
working-directory: ./scripts/myapp
|
working-directory: ./scripts/myapp
|
||||||
|
|||||||
@@ -74,7 +74,7 @@ If you use a {% data variables.enterprise.prodname_managed_user %}, you cannot p
|
|||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: {% data reusables.actions.action-setup-node %}
|
- uses: {% data reusables.actions.action-setup-node %}
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm test
|
- run: npm test
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ If you use a {% data variables.enterprise.prodname_managed_user %}, you cannot p
|
|||||||
- uses: {% data reusables.actions.action-checkout %}
|
- uses: {% data reusables.actions.action-checkout %}
|
||||||
- uses: {% data reusables.actions.action-setup-node %}
|
- uses: {% data reusables.actions.action-setup-node %}
|
||||||
with:
|
with:
|
||||||
node-version: 16
|
node-version: 20
|
||||||
registry-url: {% ifversion ghes %}https://npm.YOUR-HOSTNAME.com/{% else %}https://npm.pkg.github.com/{% endif %}
|
registry-url: {% ifversion ghes %}https://npm.YOUR-HOSTNAME.com/{% else %}https://npm.pkg.github.com/{% endif %}
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm publish
|
- run: npm publish
|
||||||
|
|||||||
Reference in New Issue
Block a user