diff --git a/.github/workflows/eslint.yml b/.github/workflows/eslint.yml index 4ce9320..b961d26 100644 --- a/.github/workflows/eslint.yml +++ b/.github/workflows/eslint.yml @@ -2,7 +2,7 @@ name: ESLint check on: push: - branches: [main, dev] + branches: [main] pull_request: branches: [main, dev] @@ -14,18 +14,13 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22.x] - steps: - name: 🔨 checkout repository - uses: actions/checkout@v4 - - name: 🔨 use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/checkout@v5 + - name: 🔨 use Node.js 22 + uses: actions/setup-node@v5 with: - node-version: ${{ matrix.node-version }} - cache: "npm" + node-version: "22" - name: 🔨 install package dependencies run: npm ci - name: 🔨 run lint check diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index ffef8ba..4de63e2 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -2,7 +2,7 @@ name: Build app on: push: - branches: [main, dev] + branches: [main] pull_request: branches: [main, dev] @@ -10,18 +10,13 @@ jobs: build: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22.x] - steps: - name: 🔨 checkout repository - uses: actions/checkout@v4 - - name: 🔨 use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/checkout@v5 + - name: 🔨 use Node.js 22 + uses: actions/setup-node@v5 with: - node-version: ${{ matrix.node-version }} - cache: "npm" + node-version: "22" - name: 🔨 install package dependencies run: npm ci - name: 🔨 run test build diff --git a/.github/workflows/deploy.yml b/.github/workflows/publish-cdn.yml similarity index 96% rename from .github/workflows/deploy.yml rename to .github/workflows/publish-cdn.yml index 2a7d98e..d77e378 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/publish-cdn.yml @@ -1,4 +1,4 @@ -name: Build and Deploy to FTP +name: Publish to CDN on: push: diff --git a/.github/workflows/publish-npm.yml b/.github/workflows/publish-npm.yml new file mode 100644 index 0000000..f2afd09 --- /dev/null +++ b/.github/workflows/publish-npm.yml @@ -0,0 +1,32 @@ +name: Publish to NPM + +on: + push: + tags: + - "v*" + +env: + HUSKY_SKIP: true + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + with: + fetch-depth: 0 + + - uses: actions/setup-node@v5 + with: + node-version: "22" + + - name: Install dependencies + run: npm ci + + - name: Publish to NPM + run: | + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc + echo ":::: Publishing as $(npm whoami)" + npm run release:publish + env: + NPM_TOKEN: ${{ secrets.NPM_RELEASE_AUTH_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/tsc.yml b/.github/workflows/tsc.yml index e966f63..cf4965a 100644 --- a/.github/workflows/tsc.yml +++ b/.github/workflows/tsc.yml @@ -2,7 +2,7 @@ name: TypeScript check on: push: - branches: [main, dev] + branches: [main] pull_request: branches: [main, dev] @@ -14,18 +14,13 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22.x] - steps: - name: 🔨 checkout repository - uses: actions/checkout@v4 - - name: 🔨 use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/checkout@v5 + - name: 🔨 use Node.js 22 + uses: actions/setup-node@v5 with: - node-version: ${{ matrix.node-version }} - cache: "npm" + node-version: "22" - name: 🔨 install package dependencies run: npm ci - name: 🔨 run typescript check diff --git a/.github/workflows/ui5lint.yml b/.github/workflows/ui5lint.yml index 79d4f11..1f6edcf 100644 --- a/.github/workflows/ui5lint.yml +++ b/.github/workflows/ui5lint.yml @@ -2,7 +2,7 @@ name: UI5 Lint check on: push: - branches: [main, dev] + branches: [main] pull_request: branches: [main, dev] @@ -14,18 +14,13 @@ jobs: runs-on: ubuntu-latest - strategy: - matrix: - node-version: [22.x] - steps: - name: 🔨 checkout repository - uses: actions/checkout@v4 - - name: 🔨 use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v4 + uses: actions/checkout@v5 + - name: 🔨 use Node.js 22 + uses: actions/setup-node@v5 with: - node-version: ${{ matrix.node-version }} - cache: "npm" + node-version: "22" - name: 🔨 install package dependencies run: npm ci - name: 🔨 run typescript check diff --git a/README.md b/README.md index a269c47..0aadacb 100644 --- a/README.md +++ b/README.md @@ -3,12 +3,12 @@ > **Enhance your SAP UI5/OpenUI5 applications with modern Font Awesome icons!** 🚀 This library seamlessly integrates [Font Awesome](https://fontawesome.com/icons) icons into the SAP UI5 icon system, providing access to thousands of beautiful, scalable icons for your Fiori applications. -Have a look at the [ui5-icon-explorer](https://github.com/mariokernich/ui5-icon-explorer) project or directly visit [ie.kernich.de](https://ie.kernich.de/) for an example integration and interactive showcase of all free Font Awesome icons together with the built-in icons. +Have a look at the [ui5-icon-explorer](https://github.com/ui5-community/ui5-icon-explorer) project or directly visit [ie.kernich.de](https://ie.kernich.de/) for an example integration and interactive showcase of all free Font Awesome icons together with the built-in icons. -[![Build app](https://github.com/mariokernich/ui5-fontawesome-lib/workflows/Build%20app/badge.svg)](https://github.com/mariokernich/ui5-fontawesome-lib/actions?query=workflow%3A%22Build+app%22) -[![ESLint check](https://github.com/mariokernich/ui5-fontawesome-lib/workflows/ESLint%20check/badge.svg)](https://github.com/mariokernich/ui5-fontawesome-lib/actions?query=workflow%3A%22ESLint+check%22) -[![TypeScript check](https://github.com/mariokernich/ui5-fontawesome-lib/workflows/TypeScript%20check/badge.svg)](https://github.com/mariokernich/ui5-fontawesome-lib/actions?query=workflow%3A%22TypeScript+check%22) -[![UI5 Lint](https://github.com/mariokernich/ui5-fontawesome-lib/workflows/UI5%20Lint%20check/badge.svg)](https://github.com/mariokernich/ui5-fontawesome-lib/actions?query=workflow%3A%22UI5+Lint%22) +[![Build app](https://github.com/ui5-community/ui5-fontawesome-lib/workflows/Build%20app/badge.svg)](https://github.com/ui5-community/ui5-fontawesome-lib/actions?query=workflow%3A%22Build+app%22) +[![ESLint check](https://github.com/ui5-community/ui5-fontawesome-lib/workflows/ESLint%20check/badge.svg)](https://github.com/ui5-community/ui5-fontawesome-lib/actions?query=workflow%3A%22ESLint+check%22) +[![TypeScript check](https://github.com/ui5-community/ui5-fontawesome-lib/workflows/TypeScript%20check/badge.svg)](https://github.com/ui5-community/ui5-fontawesome-lib/actions?query=workflow%3A%22TypeScript+check%22) +[![UI5 Lint](https://github.com/ui5-community/ui5-fontawesome-lib/workflows/UI5%20Lint%20check/badge.svg)](https://github.com/ui5-community/ui5-fontawesome-lib/actions?query=workflow%3A%22UI5+Lint%22) [![Font Awesome](https://img.shields.io/badge/FontAwesome-7.0.0-blue.svg)](https://fontawesome.com/) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](LICENSE) [![UI5](https://img.shields.io/badge/UI5-1.120.33+-green.svg)](https://sapui5.hana.ondemand.com/) @@ -160,7 +160,7 @@ Want to use Font Awesome Pro icons? Here's how to extend this library: ```bash # Clone the repository -git clone https://github.com/mariokernich/ui5-fontawesome-lib.git +git clone https://github.com/ui5-community/ui5-fontawesome-lib.git cd ui5-fontawesome-lib # Install dependencies @@ -226,7 +226,7 @@ This project is licensed under the Apache Software License, version 2.0 - see th ## 🔗 Links - 📦 [NPM Package](https://www.npmjs.com/package/ui5-fontawesome-lib) -- 🐙 [GitHub Repository](https://github.com/mariokernich/ui5-fontawesome-lib) +- 🐙 [GitHub Repository](https://github.com/ui5-community/ui5-fontawesome-lib) - 📚 [Font Awesome Documentation](https://fontawesome.com/docs) - 🎯 [SAP UI5 Documentation](https://sapui5.hana.ondemand.com/) diff --git a/package-lock.json b/package-lock.json index 928c7ca..90d8fda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "ui5-fontawesome-lib", - "version": "1.0.0", + "version": "1.0.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ui5-fontawesome-lib", - "version": "1.0.0", + "version": "1.0.1", "license": "Apache-2.0", "devDependencies": { "@commitlint/cli": "latest", diff --git a/package.json b/package.json index 50f6c06..21881c9 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "license": "Apache-2.0", "repository": { "type": "git", - "url": "https://github.com/mariokernich/ui5-fontawesome-lib.git" + "url": "https://github.com/ui5-community/ui5-fontawesome-lib.git" }, "keywords": [ "ui5", diff --git a/test/IconListPreview.ts b/test/IconListPreview.ts index e9c1e06..899a6b6 100644 --- a/test/IconListPreview.ts +++ b/test/IconListPreview.ts @@ -80,7 +80,7 @@ const page = new Page({ type: "Ghost", icon: "sap-icon://fa-brands/github", press: () => { - window.open("https://github.com/mariokernich/ui5-fontawesome-lib", "_blank"); + window.open("https://github.com/ui5-community/ui5-fontawesome-lib", "_blank"); } }),