@@ -2,12 +2,6 @@ name: Release JS package
22
33on :
44 workflow_call :
5- inputs :
6- RELEASE_TYPE :
7- description : Type of package manager
8- default : " node"
9- required : false
10- type : string
115 secrets :
126 READ_WRITE_PACKAGES_TOKEN :
137 description : Read/write packages token
@@ -23,23 +17,24 @@ jobs:
2317 name : Release JS package
2418 runs-on : ubuntu-latest
2519 steps :
26- - uses : actions/checkout@v4
20+ - uses : actions/checkout@v5
2721
28- - uses : actions/setup-node@v4
22+ - uses : actions/setup-node@v5
2923 with :
30- node-version : " 18"
24+ node-version : " 20"
25+ registry-url : ' https://npm.pkg.github.com'
26+ scope : ' @humanoidfr'
3127
32- - uses : google-github-actions /release-please-action@v3
28+ - uses : googleapis /release-please-action@v4
3329 id : release
3430 with :
35- release-type : ${{ inputs.RELEASE_TYPE }}
36- package-name : ${{ github.event.client_payload.repo_name }}
31+ release-type : ' node'
3732
38- - name : Set up NPM auth
39- if : ${{ steps.release.outputs.release_created == 'true' }}
40- run : |
41- npm config set //npm.pkg.github.com/:_authToken ${{ secrets.READ_WRITE_PACKAGES_TOKEN }}
42- npm config set @humanoidfr:registry http://npm.pkg.github.com/
33+ # - name: Set up NPM auth
34+ # if: ${{ steps.release.outputs.release_created == 'true' }}
35+ # run: |
36+ # npm config set //npm.pkg.github.com/:_authToken ${{ secrets.READ_WRITE_PACKAGES_TOKEN }}
37+ # npm config set @humanoidfr:registry http://npm.pkg.github.com/
4338
4439 - uses : bahmutov/npm-install@v1
4540 if : ${{ steps.release.outputs.release_created == 'true' }}
5752 if : ${{ steps.release.outputs.release_created == 'true' }}
5853 env :
5954 NPM_AUTH_TOKEN : ${{ secrets.READ_WRITE_PACKAGES_TOKEN }}
55+ NODE_AUTH_TOKEN : ${{ secrets.READ_WRITE_PACKAGES_TOKEN }}
0 commit comments