8080 - name : Setup NodeJS
8181 uses : actions/setup-node@v4
8282 with :
83- node-version : ${{ inputs.nodejs_version }}
83+ node-version-file : ' .tool-versions '
8484 registry-url : ' https://npm.pkg.github.com'
8585
8686 - name : check if local version differs from latest published version
@@ -113,19 +113,14 @@ jobs:
113113 steps :
114114 - name : " Checkout code"
115115 uses : actions/checkout@v5.0.0
116- - name : Setup NodeJS
117- uses : actions/setup- node@v4
116+ - name : " Repo setup "
117+ uses : ./.github/ actions/node-install
118118 with :
119- node-version : ${{ inputs.nodejs_version }}
120- registry-url : ' https://npm.pkg.github.com'
121- - name : " Install dependencies"
122- env :
123- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
124- run : npm ci
119+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
125120 - name : " Run provider contract tests"
126121 run : make test-contract
127122 env :
128- GITHUB_PACKAGES_TOKEN : ${{ secrets.GITHUB_TOKEN }}
123+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
129124
130125 publish-event-schemas :
131126 name : Publish event schemas package to GitHub package registry
@@ -145,7 +140,7 @@ jobs:
145140 - name : Setup NodeJS
146141 uses : actions/setup-node@v4
147142 with :
148- node-version : ${{ inputs.nodejs_version }}
143+ node-version-file : ' .tool-versions '
149144 registry-url : ' https://npm.pkg.github.com'
150145
151146 - name : Install dependencies
0 commit comments