Skip to content
This repository has been archived by the owner on Aug 25, 2023. It is now read-only.

feat: add flutter issue entry #78

feat: add flutter issue entry

feat: add flutter issue entry #78

name: PUBLISH_COMPONENTS
on:
push:
branches: [main]
pull_request_target:
types: [closed]
jobs:
modify-components:
runs-on: ubuntu-latest
outputs:
components-changed: ${{ steps.components-changed.outputs.changed }}
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 100
- uses: marceloprado/has-changed-path@v1
id: components-changed
with:
paths: components/package.json
- run: echo components changed=${{ steps.components-changed.outputs.changed }}
publish-components:
runs-on: ubuntu-latest
needs: modify-components
if: needs.modify-components.outputs.components-changed == 'true'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: cd components && npm install
- run: cd components && npm run build
- run: cd components && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.TDESIGN_NPM_TOKEN }}
- run: echo '${{ github.ref }} ... ${{ github.ref_name }}'
- if: steps.publish.outputs.type != 'none'
run: |
echo "Version changed: ${{ steps.publish.outputs.old-version }} => ${{ steps.publish.outputs.version }}"