Skip to content

Commit e5050dd

Browse files
committed
ci: use github app for snapshot builds publishing
1 parent cad1e95 commit e5050dd

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/publish-snapshots.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,16 @@ jobs:
2929
bazelrc: .bazelrc
3030
- run: pnpm install --frozen-lockfile
3131
- run: pnpm bazel build //ng-dev:npm_package --config=release
32+
- name: Generate Snapshots Build token
33+
uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4
34+
id: snapshot-builds-app
35+
with:
36+
app-id: ${{ vars.SNAPSHOT_GITHUB_APP_ID }}
37+
private-key: ${{ secrets.SNAPSHOT_GITHUB_APP_KEY }}
38+
repositories: |
39+
dev-infra-private-ng-dev-builds
3240
- name: Publish Snapshots
3341
env:
34-
SNAPSHOT_BUILDS_GITHUB_TOKEN: ${{ secrets.SNAPSHOT_BUILDS_GITHUB_TOKEN }}
42+
SNAPSHOT_BUILDS_GITHUB_TOKEN: ${{ steps.snapshot-builds-app.outputs.token }}
3543
run: |
3644
./tools/publish_to_github.sh "@angular/ng-dev" "dev-infra-private-ng-dev-builds" "dist/bin/ng-dev/npm_package"

0 commit comments

Comments
 (0)