From 3654e8dd3a1dcf1ce6b016c2729096f900fcf52d Mon Sep 17 00:00:00 2001 From: Sukaato Date: Wed, 28 Aug 2024 13:48:06 +0200 Subject: [PATCH] ci: update actions --- .github/workflows/actions/audit/action.yml | 3 +-- .github/workflows/actions/build/action.yml | 13 +++++-------- .github/workflows/actions/quality/action.yml | 16 ++++++---------- .github/workflows/build-vue.yml | 3 +-- 4 files changed, 13 insertions(+), 22 deletions(-) diff --git a/.github/workflows/actions/audit/action.yml b/.github/workflows/actions/audit/action.yml index 483d252..2aa1013 100644 --- a/.github/workflows/actions/audit/action.yml +++ b/.github/workflows/actions/audit/action.yml @@ -19,6 +19,5 @@ runs: with: node-version: ${{ inputs.node-version }} - - run: npx audit-ci@latest --config ./audit-ci.json - working-directory: ./packages/${{ inputs.package }} + - run: npx -w @poppy-ui/${{ inputs.package }} audit-ci@latest --config ./audit-ci.json shell: bash diff --git a/.github/workflows/actions/build/action.yml b/.github/workflows/actions/build/action.yml index e69b136..d548bf5 100644 --- a/.github/workflows/actions/build/action.yml +++ b/.github/workflows/actions/build/action.yml @@ -19,32 +19,29 @@ runs: node-version: ${{ inputs.node-version }} - name: Install Package - run: npm install -w @poppy-ui/${{ inputs.package }} + run: npm -w @poppy-ui/${{ inputs.package }} install shell: bash - name: Install Core if: inputs.package != 'core' - run: npm install -w @poppy-ui/${{ inputs.package }} @poppy-ui/core @poppy-ui/docs + run: npm -w @poppy-ui/${{ inputs.package }} install @poppy-ui/core @poppy-ui/docs shell: bash - name: Build - run: npm run build --if-present - working-directory: ./packages/${{ inputs.package }} + run: npm -w @poppy-ui/${{ inputs.package }} run build --if-present shell: bash - name: Pack - run: npm pack - working-directory: ./packages/${{ inputs.package }} + run: npm -w @poppy-ui/${{ inputs.package }} pack shell: bash - name: Rename tarball run: | PKG=$(ls poppy-ui-${{ inputs.package }}-*.tgz) mv $PKG poppy-ui-${{ inputs.package }}.tgz - working-directory: ./packages/${{ inputs.package }} shell: bash - uses: actions/upload-artifact@v4 with: name: ${{ inputs.package }}-${{ inputs.node-version }} - path: ./packages/${{ inputs.package }}/poppy-ui-${{ inputs.package }}-${{ inputs.node-version }}.tgz + path: ./poppy-ui-${{ inputs.package }}-${{ inputs.node-version }}.tgz diff --git a/.github/workflows/actions/quality/action.yml b/.github/workflows/actions/quality/action.yml index a2ea4d8..b19a0df 100644 --- a/.github/workflows/actions/quality/action.yml +++ b/.github/workflows/actions/quality/action.yml @@ -19,32 +19,28 @@ runs: node-version: ${{ inputs.node-version }} - name: Install Package - run: npm install -w @poppy-ui/${{ inputs.package }} + run: npm -w @poppy-ui/${{ inputs.package }} install shell: bash - name: Install Core if: inputs.package != 'core' - run: npm install -w @poppy-ui/${{ inputs.package }} @poppy-ui/core @poppy-ui/docs + run: npm -w @poppy-ui/${{ inputs.package }} install @poppy-ui/core @poppy-ui/docs shell: bash - name: Format - run: npx @biomejs/biome format --reporter github - working-directory: ./packages/${{ inputs.package }} + run: npx -w @poppy-ui/${{ inputs.package }} @biomejs/biome format --reporter github shell: bash - name: Lint - run: npx @biomejs/biome lint --reporter github - working-directory: ./packages/${{ inputs.package }} + run: npx -w @poppy-ui/${{ inputs.package }} @biomejs/biome lint --reporter github shell: bash - name: Test - run: npm run test:spec -- --passWithNoTests --coverage - working-directory: ./packages/${{ inputs.package }} + run: npm -w @poppy-ui/${{ inputs.package }} run test:spec --if-present -- --passWithNoTests --coverage shell: bash - name: Test e2e - run: npm run test:e2e -- --pass-with-no-tests --reporter github - working-directory: ./packages/${{ inputs.package }} + run: npm -w @poppy-ui/${{ inputs.package }} run test:e2e --if-present -- --pass-with-no-tests --reporter github shell: bash - name: Scan diff --git a/.github/workflows/build-vue.yml b/.github/workflows/build-vue.yml index 77355b8..08aa7f3 100644 --- a/.github/workflows/build-vue.yml +++ b/.github/workflows/build-vue.yml @@ -62,8 +62,7 @@ jobs: node-version: ${{ matrix.node-version }} - name: Install core - working-directory: ./packages/vue - run: npm i ../core/poppy-ui-core.tgz + run: npm -w @poppy-ui/vue install poppy-ui-core.tgz - name: Build Vue uses: ./.github/workflows/actions/build