Skip to content

Commit 1c4a85f

Browse files
committed
mod: improve build & release
1 parent 91ab7c4 commit 1c4a85f

File tree

3 files changed

+17
-10
lines changed

3 files changed

+17
-10
lines changed

.github/workflows/publish-npm.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish to NPM
33
on:
44
push:
55
tags:
6-
- "v*"
6+
- "v*"
77

88
env:
99
HUSKY_SKIP: true
@@ -12,21 +12,26 @@ jobs:
1212
release:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v5
15+
- name: 🔨 checkout repository
16+
uses: actions/checkout@v5
1617
with:
1718
fetch-depth: 0
1819

19-
- uses: actions/setup-node@v5
20+
- name: 🔨 use Node.js 22
21+
uses: actions/setup-node@v5
2022
with:
2123
node-version: "22"
2224

23-
- name: Install dependencies
25+
- name: 🔨 install dependencies
2426
run: npm ci
2527

26-
- name: Publish to NPM
28+
- name: 🔨 build project
29+
run: npm run build
30+
31+
- name: 🔨 publish to NPM
2732
run: |
2833
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
2934
echo ":::: Publishing as $(npm whoami)"
30-
npm run release:publish
31-
env:
32-
NPM_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }}
35+
npm publish
36+
env:
37+
NPM_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ui5-fontawesome-lib",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "UI5 Library: Font Awesome icons integration for SAP UI5/OpenUI5 applications",
55
"author": "Mario Kernich",
66
"license": "Apache-2.0",

ui5.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,11 @@ builder:
1313
afterTask: replaceVersion
1414
configuration:
1515
generateTsInterfaces: true
16+
- name: ui5-tooling-modules-task
17+
afterTask: replaceVersion
1618
server:
1719
customMiddleware:
1820
- name: ui5-tooling-transpile-middleware
1921
afterMiddleware: compression
2022
- name: ui5-middleware-livereload
21-
afterMiddleware: compression
23+
afterMiddleware: compression

0 commit comments

Comments
 (0)