File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737 - name : " Repo setup"
3838 uses : ./.github/actions/node-install
3939 with :
40- node-version : ${{ steps.nodejs_version.outputs.nodejs_version }}
4140 GITHUB_TOKEN : ${{ env.GITHUB_TOKEN }}
4241
4342 - name : " Set PR NUMBER"
Original file line number Diff line number Diff line change @@ -2,9 +2,6 @@ name: 'npm install and setup'
22description : ' Setup node, authenticate github package repository and perform clean npm install'
33
44inputs :
5- node-version :
6- description : ' Node.js version'
7- required : true
85 GITHUB_TOKEN :
96 description : " Token for access to github package registry"
107 required : true
1512 - name : ' Use Node.js'
1613 uses : actions/setup-node@v6
1714 with :
18- node-version : ' ${{ inputs.node-version }} '
15+ node-version-file : ' .tool-versions '
1916 registry-url : ' https://npm.pkg.github.com'
2017 scope : ' @nhsdigital'
2118
Original file line number Diff line number Diff line change 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,18 +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 :
123+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128124 GITHUB_PACKAGES_TOKEN : ${{ secrets.GITHUB_TOKEN }}
129125
130126 publish-event-schemas :
@@ -145,7 +141,7 @@ jobs:
145141 - name : Setup NodeJS
146142 uses : actions/setup-node@v4
147143 with :
148- node-version : ${{ inputs.nodejs_version }}
144+ node-version-file : ' .tool-versions '
149145 registry-url : ' https://npm.pkg.github.com'
150146
151147 - name : Install dependencies
You can’t perform that action at this time.
0 commit comments