From 2dbf8ffaa3fd628c3dc1e969f3dd0f1c8464c780 Mon Sep 17 00:00:00 2001 From: SMAH1 Date: Thu, 22 Apr 2021 02:17:44 +0430 Subject: [PATCH] Add workflow for release lucide-angular (#282) --- .github/workflows/release.yml | 38 ++++++++++++++++++++++++++++++++++- 1 file changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3055f9d..c91ae2e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -137,10 +137,46 @@ jobs: name: lucide-vue-package-json path: packages/lucide-vue/package.json + lucide-angular: + if: github.repository == 'lucide-icons/lucide' + runs-on: ubuntu-latest + needs: pre-build + steps: + - uses: actions/checkout@v2 + - uses: actions/cache@v2 + with: + path: ${{ needs.pre-build.outputs.YARN_CACHE_DIR }} + key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} + restore-keys: | + ${{ runner.os }}-yarn- + + - name: Install dependencies + run: yarn --pure-lockfile + + - name: Set Auth Token + run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} + + - name: Set package.json version lucide + run: yarn workspace lucide-angular version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version + + - name: Build + run: yarn workspace lucide-angular build + + - name: Test + run: yarn workspace lucide-angular test:headless + + - name: Publish + run: yarn workspace lucide-angular publish + + - name: Upload package.json + uses: actions/upload-artifact@v2 + with: + path: packages/lucide-angular/package.json + upload-package-jsons: if: github.repository == 'lucide-icons/lucide' runs-on: ubuntu-latest - needs: [lucide, lucide-react, lucide-vue] + needs: [lucide, lucide-react, lucide-vue, lucide-angular] steps: - uses: actions/checkout@v2