From 432271ea58d166d67e41d466d845f73a676280d0 Mon Sep 17 00:00:00 2001 From: Chris Helmich Date: Mon, 17 Jun 2024 15:33:20 +0900 Subject: [PATCH] feature ('test-pack-action' workflow): implement workflow to test 'pack' action --- .github/workflows/test-pack-action.yml | 42 ++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 .github/workflows/test-pack-action.yml diff --git a/.github/workflows/test-pack-action.yml b/.github/workflows/test-pack-action.yml new file mode 100644 index 00000000..104b3998 --- /dev/null +++ b/.github/workflows/test-pack-action.yml @@ -0,0 +1,42 @@ +name: test-pack-action + +on: + pull_request: + types: [opened, reopened, synchronize] + paths: + - .github/actions/nugettier-pack/* + - .github/workflows/test-pack-action.yml + push: + paths: + - .github/actions/nugettier-pack/* + - .github/workflows/test-pack-action.yml + +jobs: + build: + runs-on: ubuntu-latest + permissions: + packages: read + strategy: + matrix: + version: ['latest', '0.0.35'] + amalgamate: ['false', 'true'] + target: + - npmjs + - github + include: + - target: npmjs + registry: https://registry.npmjs.org/ + - target: github + registry: https://npm.pkg.github.com/@${{ github.repository_owner }}/ + steps: + - uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main + - uses: ./.github/actions/install + with: + accept-license: YES + - uses: ./.github/actions/nugettier-pack + with: + registry: ${{ matrix.registry }} + package: Keillogs + version: ${{ matrix.version }} + amalgamate: ${{ matrix.amalgamate }} + additional-sources: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json;${{ secrets.GITHUB_TOKEN }}