Skip to content

Commit 76e9889

Browse files
committed
feature ('test-pack-action' workflow): implement workflow to test 'pack' action
1 parent 5812ee4 commit 76e9889

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: test-pack-action
2+
3+
on:
4+
pull_request:
5+
types: [opened, reopened, synchronize]
6+
paths:
7+
- .github/actions/nugettier-pack/*
8+
- .github/workflows/test-pack-action.yml
9+
push:
10+
paths:
11+
- .github/actions/nugettier-pack/*
12+
- .github/workflows/test-pack-action.yml
13+
14+
jobs:
15+
build:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
packages: read
19+
strategy:
20+
matrix:
21+
version: ['latest', '0.0.35']
22+
amalgamate: ['false', 'true']
23+
target:
24+
- npmjs
25+
- github
26+
include:
27+
- target: npmjs
28+
registry: https://registry.npmjs.org/
29+
- target: github
30+
registry: https://npm.pkg.github.com/@${{ github.repository_owner }}/
31+
steps:
32+
- uses: kagekirin/gha-utils/.github/actions/git-checkout-tags@main
33+
- uses: ./.github/actions/install
34+
with:
35+
accept-license: YES
36+
- uses: ./.github/actions/nugettier-pack
37+
with:
38+
registry: ${{ matrix.registry }}
39+
package: Keillogs
40+
version: ${{ matrix.version }}
41+
amalgamate: ${{ matrix.amalgamate }}
42+
additional-sources: https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json;${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)