File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed
Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change @@ -31,16 +31,40 @@ jobs:
3131
3232 - name : Build
3333 run : npm run build
34+
35+ - name : Pack
36+ run : npm pack
37+
38+ - name : Upload package artifact
39+ uses : actions/upload-artifact@v4
40+ with :
41+ name : package
42+ path : cldn-components-0.0.0-dev.tgz
3443 publish :
3544 name : Publish
3645 needs : build
3746 if : github.event_name == 'release'
3847 runs-on : ubuntu-latest
3948 steps :
49+ - name : Setup Node.js
50+ uses : actions/setup-node@v4
51+ with :
52+ node-version : 20
53+ registry-url : https://registry.npmjs.org/
54+ cache : npm
55+
56+ - name : Install latest NPM
57+ run : npm i -g npm@latest
58+
59+ - name : Download artifacts
60+ uses : actions/download-artifact@v4
61+
4062 - name : Set version from release tag
63+ working-directory : ./package/package
4164 run : npm version ${{ github.event.release.tag_name }} --git-tag-version=false
4265
4366 - name : Publish to NPM
67+ working-directory : ./package/package
4468 run : npm publish --provenance --access public
4569 env :
4670 NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
You can’t perform that action at this time.
0 commit comments