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+ name : Publish Package
2+
3+ on :
4+ push :
5+ tags :
6+ - " v*"
7+
8+ jobs :
9+ publish :
10+ runs-on : ubuntu-latest
11+
12+ steps :
13+ - name : Checkout code
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 20
20+
21+ - name : Install dependencies
22+ run : npm ci
23+
24+ - name : Get tag version
25+ id : get_tag_version
26+ run : echo "::set-output name=tag_version::${GITHUB_REF#refs/tags/}"
27+
28+ - name : Update package.json version
29+ run : |
30+ cd packages/layout-components
31+ npm version ${{ steps.get_tag_version.outputs.tag_version }}
32+ git config --global user.name "nemobot"
33+ git config --global user.email "our-bots+nemobot@buildo.io"
34+ git add package.json
35+ git commit -m "Update package version"
36+ git push
37+
38+ - name : Build package
39+ run : npx run ng build layout-components
40+
41+ - name : Publish package
42+ run : |
43+ cd dist/layout-components
44+ npm publish --access public --scope @buildo
45+ env :
46+ NODE_AUTH_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 5858 "ng-packagr" : " ^17.3.0" ,
5959 "storybook" : " ^8.0.9" ,
6060 "typescript" : " ~5.4.2"
61+ },
62+ "publishConfig" : {
63+ "registry" : " https://npm.pkg.github.com/buildo"
6164 }
6265}
You can’t perform that action at this time.
0 commit comments