@@ -22,45 +22,29 @@ jobs:
2222 with :
2323 fetch-depth : 0
2424
25- - id : debug_step_1
26- run : |
27- pwd
28- ls -lah
29- echo $GITHUB_WORKSPACE
30-
3125 - id : version
3226 uses : EndBug/version-check@v2
3327 with :
3428 file-name : ./precise/package.json
3529 diff-search : true
3630
37- # - if: steps.version.outputs.changed == 'true'
38- - id : debug_step_2
39- run : |
40- pwd
41- ls -lah
42- echo changed = ${{ steps.version.outputs.changed }}
43- echo version = ${{ steps.version.outputs.version }}
44- echo commit = ${{ steps.version.outputs.commit }}
45- echo type = ${{ steps.version.outputs.type }}
31+ - if : steps.version.outputs.changed == 'true'
32+ uses : softprops/action-gh-release@v2
33+ with :
34+ tag_name : ${{ steps.version.outputs.version }}
35+ name : ${{ steps.version.outputs.version }}
36+ generate_release_notes : true
4637
47- # - if: steps.version.outputs.changed == 'true'
48- # uses: softprops/action-gh-release@v2
49- # with:
50- # tag_name: ${{ steps.version.outputs.version }}
51- # name: ${{ steps.version.outputs.version }}
52- # generate_release_notes: true
53- #
54- # - if: steps.version.outputs.changed == 'true'
55- # uses: actions/setup-node@v6
56- # with:
57- # node-version: '24' # Use latest LTS version
58- # registry-url: https://registry.npmjs.org
59- #
60- # - if: steps.version.outputs.changed == 'true'
61- # run: |
62- # npm ci
63- # npm run build
64- # npm publish
65- # env:
66- # NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
38+ - if : steps.version.outputs.changed == 'true'
39+ uses : actions/setup-node@v6
40+ with :
41+ node-version : ' 24' # Use latest LTS version
42+ registry-url : https://registry.npmjs.org
43+
44+ - if : steps.version.outputs.changed == 'true'
45+ run : |
46+ npm ci
47+ npm run build
48+ npm publish
49+ env :
50+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments