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