diff --git a/.github/workflows/generate-mistica-tokens.yml b/.github/workflows/generate-mistica-tokens.yml index b9b43fa46..bf850b7e6 100644 --- a/.github/workflows/generate-mistica-tokens.yml +++ b/.github/workflows/generate-mistica-tokens.yml @@ -1,10 +1,7 @@ -name: Mistica skin generator tests +name: Generate Mistica Tokens on: workflow_dispatch: - push: - paths: - - 'scripts/mistica-skin-generator/**' concurrency: group: ci-${{ github.ref }} @@ -25,6 +22,18 @@ jobs: run: npm install working-directory: scripts/mistica-skin-generator - - name: Run tests - run: npm run test + - name: Generate tokens + run: npm run generate working-directory: scripts/mistica-skin-generator + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.NOVUM_PRIVATE_REPOS }} + add-paths: 'Sources/MisticaCommon/*' + commit-message: 'feat(skin): update design tokens' + title: 'feat(skin): update design tokens from mistica-design' + branch: 'import-design-tokens' + team-reviewers: 'ios' + delete-branch: true + draft: true diff --git a/.github/workflows/mistica-skin-generator-tests.yml b/.github/workflows/mistica-skin-generator-tests.yml new file mode 100644 index 000000000..b9b43fa46 --- /dev/null +++ b/.github/workflows/mistica-skin-generator-tests.yml @@ -0,0 +1,30 @@ +name: Mistica skin generator tests + +on: + workflow_dispatch: + push: + paths: + - 'scripts/mistica-skin-generator/**' + +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build & execute tests + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + + - name: Install dependencies + run: npm install + working-directory: scripts/mistica-skin-generator + + - name: Run tests + run: npm run test + working-directory: scripts/mistica-skin-generator