File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1515 - main
1616 - 7.**.x
1717
18+ permissions :
19+ id-token : write # Required for publishing to npmjs
20+ contents : write
21+ pull-requests : write
22+
23+
1824jobs :
1925 publish :
2026 runs-on : ubuntu-22.04
2127 steps :
2228 - uses : actions/setup-node@v4
2329 with :
24- node-version : ' 20 '
30+ node-version : ' 24 '
2531 registry-url : ' https://registry.npmjs.org'
2632 scope : ' @eclipse-che'
2733 - name : Clone source code
3642 key : yarn-${{ hashFiles('yarn.lock') }}
3743 restore-keys : yarn-
3844 - name : publish
39- env :
40- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
4145 run : |
4246 if [[ ${GITHUB_REF##*/} == "7."**".x" ]]; then
4347 echo "[INFO] using ${GITHUB_REF##*/} tag"
4751 DIST_TAG=next
4852 fi
4953
50- yarn
54+ yarn install --frozen-lockfile
5155 yarn compile
5256 SHORT_SHA1=$(git rev-parse --short=7 HEAD)
5357 CURRENT_VERSION=$(jq -r '.version' package.json)
Original file line number Diff line number Diff line change 99
1010name : Release Che Devworkspace Generator
1111
12+ permissions :
13+ id-token : write # Required for publishing to npmjs
14+ contents : write
15+ pull-requests : write
16+
1217on :
1318 workflow_dispatch :
1419 inputs :
@@ -27,11 +32,11 @@ jobs:
2732 steps :
2833 - uses : actions/setup-node@v4
2934 with :
30- node-version : ' 20 '
35+ node-version : ' 24 '
3136 registry-url : ' https://registry.npmjs.org'
3237 scope : ' @eclipse-che'
3338 - name : " Checkout source code"
34- uses : actions/checkout@v4
39+ uses : actions/checkout@v6
3540 with :
3641 fetch-depth : 0
3742 - name : Set up environment
6873 restore-keys : yarn-
6974 - name : Run make-release.sh script
7075 env :
71- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
7276 GITHUB_TOKEN : ${{secrets.DEVWORKSPACE_GENERATOR_RELEASE_GITHUB_TOKEN}}
7377 run : |
7478 git config --global user.name "Anatolii Bazko"
7579 git config --global user.email "abazko@redhat.com"
7680
7781 ./make-release.sh --version ${{ github.event.inputs.version }}
78-
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ checkoutToNextBranch() {
7272publishArtifacts () {
7373 echo " [INFO] Publish DevWorkspace Generator ${VERSION} artifacts"
7474
75- yarn
75+ yarn install --frozen-lockfile
7676 yarn compile
7777 npm publish --tag latest
7878}
You can’t perform that action at this time.
0 commit comments