Skip to content

Commit 5fab1c7

Browse files
shairezshaharkazaz
andauthored
ci: added pkg.pr.new (#827)
* ci: added pkg.pr.new * ci: added restriction to prevent multiple prereleases Co-authored-by: Shahar Kazaz <[email protected]> * ci: fix libs folder Co-authored-by: Shahar Kazaz <[email protected]> --------- Co-authored-by: Shahar Kazaz <[email protected]>
1 parent d2ade9f commit 5fab1c7

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@ jobs:
2424
run: npm run ${{ matrix.target }}
2525
shell: bash
2626

27+
- name: Publish any commit / build for testing
28+
if: ${{ matrix.target == 'ci:build' }}
29+
run: npm run release:pkg-pr-new
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
2733
commitlint:
2834
runs-on: ubuntu-latest
2935
if: github.event_name == 'pull_request'

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
"ci:lint": "nx run-many --target=lint --all",
1515
"ci:e2e": "nx run transloco-playground-e2e:e2e:ci",
1616
"e2e": "nx run transloco-playground-e2e:e2e",
17-
"pre-commit": "node scripts/pre-commit.js && lint-staged --allow-empty"
17+
"pre-commit": "node scripts/pre-commit.js && lint-staged --allow-empty",
18+
"release:pkg-pr-new": "npx pkg-pr-new@^0.0.30 publish --compact ./dist/libs/*"
1819
},
1920
"dependencies": {
2021
"@angular/animations": "18.2.9",

0 commit comments

Comments
 (0)