diff --git a/action.yml b/action.yml index 138f1b61..24b059df 100644 --- a/action.yml +++ b/action.yml @@ -117,11 +117,16 @@ runs: git config user.email "<>" - name: Set up Node if: ${{ env.JDEPLOY_SKIP_EXECUTION != 'true' }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20.x' registry-url: 'https://registry.npmjs.org' + - name: Upgrade npm for trusted publishing + if: ${{ env.JDEPLOY_SKIP_EXECUTION != 'true' }} + run: npm install -g npm@latest + shell: bash + - name: Setup jDeploy Registry if: ${{ env.JDEPLOY_SKIP_EXECUTION != 'true' }} shell: bash