Skip to content

Commit 174ca41

Browse files
committed
publish
1 parent 0a44014 commit 174ca41

File tree

3 files changed

+49
-0
lines changed

3 files changed

+49
-0
lines changed

Diff for: .github/workflows/release.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
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 "[email protected]"
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 }}

Diff for: .nx/cache/nx_files.nxt

-1.82 KB
Binary file not shown.

Diff for: package.json

+3
Original file line numberDiff line numberDiff line change
@@ -58,5 +58,8 @@
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
}

0 commit comments

Comments
 (0)