Temporary disable CI for packages

This commit is contained in:
Eric Fennis
2021-09-17 17:03:02 +02:00
parent 049c4cd61e
commit 028afec837

View File

@@ -27,215 +27,215 @@ jobs:
env: env:
VERSION_REF: ${{ github.event.inputs.version || github.ref }} VERSION_REF: ${{ github.event.inputs.version || github.ref }}
lucide: # lucide:
if: github.repository == 'lucide-icons/lucide' # if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: pre-build # needs: pre-build
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0 # - uses: actions/setup-node@v2.4.0
with: # with:
node-version: '14' # node-version: '14'
cache: 'yarn' # cache: 'yarn'
- name: Install dependencies # - name: Install dependencies
run: yarn # run: yarn
- name: Set Auth Token # - name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set new version # - name: Set new version
run: yarn workspace lucide version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version # run: yarn workspace lucide version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
- name: Build # - name: Build
run: yarn workspace lucide build # run: yarn workspace lucide build
- name: Test # - name: Test
run: yarn workspace lucide test # run: yarn workspace lucide test
- name: Publish # - name: Publish
run: yarn workspace lucide publish # run: yarn workspace lucide publish
- name: Upload package.json # - name: Upload package.json
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: lucide-package-json # name: lucide-package-json
path: packages/lucide/package.json # path: packages/lucide/package.json
lucide-react: # lucide-react:
if: github.repository == 'lucide-icons/lucide' # if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: pre-build # needs: pre-build
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0 # - uses: actions/setup-node@v2.4.0
with: # with:
node-version: '14' # node-version: '14'
cache: 'yarn' # cache: 'yarn'
- name: Install dependencies # - name: Install dependencies
run: yarn # run: yarn
- name: Set Auth Token # - name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set package.json version lucide # - name: Set package.json version lucide
run: yarn workspace lucide-react version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version # run: yarn workspace lucide-react version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
- name: Build # - name: Build
run: yarn workspace lucide-react build # run: yarn workspace lucide-react build
- name: Test # - name: Test
run: yarn workspace lucide-react test # run: yarn workspace lucide-react test
- name: Publish # - name: Publish
run: yarn workspace lucide-react publish # run: yarn workspace lucide-react publish
- name: Upload package.json # - name: Upload package.json
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: lucide-react-package-json # name: lucide-react-package-json
path: packages/lucide-react/package.json # path: packages/lucide-react/package.json
lucide-vue: # lucide-vue:
if: github.repository == 'lucide-icons/lucide' # if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: pre-build # needs: pre-build
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0 # - uses: actions/setup-node@v2.4.0
with: # with:
node-version: '14' # node-version: '14'
cache: 'yarn' # cache: 'yarn'
- name: Install dependencies # - name: Install dependencies
run: yarn # run: yarn
- name: Set Auth Token # - name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set new version # - name: Set new version
run: yarn workspace lucide-vue version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version # run: yarn workspace lucide-vue version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
- name: Build # - name: Build
run: yarn workspace lucide-vue build # run: yarn workspace lucide-vue build
- name: Test # - name: Test
run: yarn workspace lucide-vue test # run: yarn workspace lucide-vue test
- name: Publish # - name: Publish
run: yarn workspace lucide-vue publish # run: yarn workspace lucide-vue publish
- name: Upload package.json # - name: Upload package.json
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: lucide-vue-package-json # name: lucide-vue-package-json
path: packages/lucide-vue/package.json # path: packages/lucide-vue/package.json
lucide-vue-next: # lucide-vue-next:
if: github.repository == 'lucide-icons/lucide' # if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: pre-build # needs: pre-build
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0 # - uses: actions/setup-node@v2.4.0
with: # with:
node-version: '14' # node-version: '14'
cache: 'yarn' # cache: 'yarn'
- name: Install dependencies # - name: Install dependencies
run: yarn # run: yarn
- name: Set Auth Token # - name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set new version # - name: Set new version
run: yarn workspace lucide-vue-next version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version # run: yarn workspace lucide-vue-next version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
- name: Build # - name: Build
run: yarn workspace lucide-vue-next build # run: yarn workspace lucide-vue-next build
- name: Test # - name: Test
run: yarn workspace lucide-vue-next test # run: yarn workspace lucide-vue-next test
- name: Publish # - name: Publish
run: yarn workspace lucide-vue-next publish # run: yarn workspace lucide-vue-next publish
- name: Upload package.json # - name: Upload package.json
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: lucide-vue-next-package-json # name: lucide-vue-next-package-json
path: packages/lucide-vue-next/package.json # path: packages/lucide-vue-next/package.json
lucide-angular: # lucide-angular:
if: github.repository == 'lucide-icons/lucide' # if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: pre-build # needs: pre-build
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0 # - uses: actions/setup-node@v2.4.0
with: # with:
node-version: '14' # node-version: '14'
cache: 'yarn' # cache: 'yarn'
- name: Install dependencies # - name: Install dependencies
run: yarn --pure-lockfile # run: yarn --pure-lockfile
- name: Set Auth Token # - name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set package.json version lucide # - name: Set package.json version lucide
run: yarn workspace lucide-angular version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version # run: yarn workspace lucide-angular version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
- name: Build # - name: Build
run: yarn workspace lucide-angular build # run: yarn workspace lucide-angular build
- name: Test # - name: Test
run: yarn workspace lucide-angular test:headless # run: yarn workspace lucide-angular test:headless
- name: Publish # - name: Publish
run: yarn workspace lucide-angular publish dist # run: yarn workspace lucide-angular publish dist
- name: Upload package.json # - name: Upload package.json
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: lucide-angular-package-json # name: lucide-angular-package-json
path: packages/lucide-angular/package.json # path: packages/lucide-angular/package.json
lucide-preact: # lucide-preact:
if: github.repository == 'lucide-icons/lucide' # if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest # runs-on: ubuntu-latest
needs: pre-build # needs: pre-build
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- uses: actions/setup-node@v2.4.0 # - uses: actions/setup-node@v2.4.0
with: # with:
node-version: '14' # node-version: '14'
cache: 'yarn' # cache: 'yarn'
- name: Install dependencies # - name: Install dependencies
run: yarn # run: yarn
- name: Set Auth Token # - name: Set Auth Token
run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} # run: npm config set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
- name: Set package.json version lucide # - name: Set package.json version lucide
run: yarn workspace lucide-preact version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version # run: yarn workspace lucide-preact version --new-version ${{ needs.pre-build.outputs.VERSION }} --no-git-tag-version
- name: Build # - name: Build
run: yarn workspace lucide-preact build # run: yarn workspace lucide-preact build
- name: Test # - name: Test
run: yarn workspace lucide-preact test # run: yarn workspace lucide-preact test
- name: Publish # - name: Publish
run: yarn workspace lucide-preact publish # run: yarn workspace lucide-preact publish
- name: Upload package.json # - name: Upload package.json
uses: actions/upload-artifact@v2 # uses: actions/upload-artifact@v2
with: # with:
name: lucide-preact-package-json # name: lucide-preact-package-json
path: packages/lucide-preact/package.json # path: packages/lucide-preact/package.json
lucide-font: lucide-font:
if: github.repository == 'lucide-icons/lucide' if: github.repository == 'lucide-icons/lucide'
@@ -364,7 +364,7 @@ jobs:
post-release: post-release:
if: github.repository == 'lucide-icons/lucide' if: github.repository == 'lucide-icons/lucide'
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: [pre-build, lucide, lucide-react, lucide-vue, lucide-vue-next, lucide-angular, lucide-preact, lucide-flutter, lucide-font] needs: [pre-build, lucide-flutter, lucide-font]
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
@@ -372,17 +372,11 @@ jobs:
- name: Commit package files - name: Commit package files
run: | run: |
mv lucide-package-json/package.json packages/lucide/package.json
mv lucide-react-package-json/package.json packages/lucide-react/package.json
mv lucide-vue-package-json/package.json packages/lucide-vue/package.json
mv lucide-preact-package-json/package.json packages/lucide-preact/package.json
mv lucide-vue-next-package-json/package.json packages/lucide-vue-next/package.json
mv lucide-angular-package-json/package.json packages/lucide-angular/package.json
mv lucide-flutter-pubspec-yaml/pubspec.yaml packages/lucide-flutter/pubspec.yaml mv lucide-flutter-pubspec-yaml/pubspec.yaml packages/lucide-flutter/pubspec.yaml
- name: Commit package.jsons - name: Commit package.jsons
run: | run: |
git add packages/*/package.json packages/lucide-flutter/pubspec.yaml git add packages/lucide-flutter/pubspec.yaml
git -c user.name="Lucide Bot" -c user.email="lucide-bot@users.noreply.github.com" \ git -c user.name="Lucide Bot" -c user.email="lucide-bot@users.noreply.github.com" \
commit -m ":package: Bump lucide package versions to ${{ needs.pre-build.outputs.VERSION }}" --no-verify --quiet commit -m ":package: Bump lucide package versions to ${{ needs.pre-build.outputs.VERSION }}" --no-verify --quiet
git remote set-url --push origin https://lucide-bot:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git git remote set-url --push origin https://lucide-bot:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY.git