Skip to content

Commit

Permalink
ci: added pkg.pr.new (#827)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
shairez and shaharkazaz authored Jan 11, 2025
1 parent d2ade9f commit 5fab1c7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ jobs:
run: npm run ${{ matrix.target }}
shell: bash

- name: Publish any commit / build for testing
if: ${{ matrix.target == 'ci:build' }}
run: npm run release:pkg-pr-new
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

commitlint:
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"ci:lint": "nx run-many --target=lint --all",
"ci:e2e": "nx run transloco-playground-e2e:e2e:ci",
"e2e": "nx run transloco-playground-e2e:e2e",
"pre-commit": "node scripts/pre-commit.js && lint-staged --allow-empty"
"pre-commit": "node scripts/pre-commit.js && lint-staged --allow-empty",
"release:pkg-pr-new": "npx pkg-pr-new@^0.0.30 publish --compact ./dist/libs/*"
},
"dependencies": {
"@angular/animations": "18.2.9",
Expand Down

0 comments on commit 5fab1c7

Please sign in to comment.