File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212env :
1313 PRIMARY_NODE_VERSION : 24.x
1414 PRIMARY_OS : ubuntu-latest
15- REGISTRY : https://registry.npmjs.org/
1615
1716jobs :
1817 test :
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ permissions:
99 contents : read # Allows checking out the repository contents
1010
1111env :
12+ NODE_VERSION : 24.x
1213 REGISTRY : https://registry.npmjs.org/
1314
1415jobs :
2021 publish_version :
2122 name : Publish to NPM
2223 runs-on : ubuntu-latest
23- strategy :
24- matrix :
25- node-version : [ 24.x ]
2624 needs : [ test ]
2725 steps :
2826
@@ -33,10 +31,10 @@ jobs:
3331 run : |
3432 git fetch --prune --unshallow
3533
36- - name : Use Node.js ${{ matrix.node-version }}
34+ - name : Use Node.js ${{ env.NODE_VERSION }}
3735 uses : actions/setup-node@v6
3836 with :
39- node-version : ${{ matrix.node-version }}
37+ node-version : ${{ env.NODE_VERSION }}
4038 registry-url : ${{ env.REGISTRY }}
4139
4240 - name : Get yarn cache directory
@@ -48,16 +46,15 @@ jobs:
4846 id : yarn-cache
4947 with :
5048 path : ${{ steps.yarn-cache-dir.outputs.dir }}
51- key : ubuntu-latest-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
49+ key : ubuntu-latest-${{ env.NODE_VERSION }}-yarn-${{ hashFiles('**/yarn.lock') }}
5250 restore-keys : |
53- ubuntu-latest-${{ matrix.node-version }}-yarn-
51+ ubuntu-latest-${{ env.NODE_VERSION }}-yarn-
5452
5553 - name : Install dependencies and build
5654 run : |
5755 yarn install --ignore-engines
5856 yarn build
5957
60- - name : Install dependencies and build
58+ - name : Publish
6159 run : |
62- yarn install --ignore-engines
63- yarn publish
60+ npm publish
You can’t perform that action at this time.
0 commit comments