File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- # Copyright 2024 EPAM Systems
1+ # Copyright 2025 EPAM Systems
22# Licensed under the Apache License, Version 2.0 (the "License");
33# you may not use this file except in compliance with the License.
44# You may obtain a copy of the License at
1919
2020permissions :
2121 id-token : write # Required for NPM OIDC
22- contents : write
22+ contents : read
2323
2424jobs :
2525 build :
3838 - name : Run tests and check coverage
3939 run : npm run test:coverage
4040
41- publish-to-npm-and-gpr :
41+ publish-to-npm :
4242 needs : build
4343 runs-on : ubuntu-latest
4444 steps :
5555 run : |
5656 npm config list
5757 npm publish --access public
58- - name : Set up Node.js
59- uses : actions/setup-node@v6
60- with :
61- node-version : 24
62- registry-url : ' https://npm.pkg.github.com'
63- scope : ' @reportportal'
64- - name : Publish to GPR
65- run : |
66- npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
67- npm config set scope '@reportportal'
68- npm config list
69- npm publish
70- env :
71- NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments