Add workflow for release lucide-angular (#282)

This commit is contained in:
SMAH1
2021-04-22 02:17:44 +04:30
committed by GitHub
parent 938f7efeba
commit 2dbf8ffaa3

View File

@@ -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