Skip to content

Commit bbcd3cf

Browse files
committed
chore(repo): use github app for push
update the repo to use a github application for pushing version bump commits to the repo. the version was bumped manually here without a git tag to ensure the next publish works as expected.
1 parent 7c1204a commit bbcd3cf

3 files changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,17 @@ jobs:
1717
contents: write # Required for git operations
1818

1919
steps:
20+
- name: Generate App token
21+
id: app-token
22+
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2.2.1
23+
with:
24+
app-id: ${{ secrets.APP_ID }} # zizmor: ignore[secrets-outside-env]
25+
private-key: ${{ secrets.APP_PRIVATE_KEY }} # zizmor: ignore[secrets-outside-env]
2026
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2127
with:
28+
fetch-depth: 0
2229
persist-credentials: false
30+
token: ${{ steps.app-token.outputs.token }}
2331
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
2432
with:
2533
node-version-file: 'package.json'
@@ -29,10 +37,10 @@ jobs:
2937
run: npm ci
3038
- name: Set up git user
3139
run: |
32-
git config --global user.name "GitHub Actions Bot"
33-
git config --global user.email "actions@github.com"
40+
git config user.name "stencil-community-releaser[bot]"
41+
git config user.email "stencil-community-releaser[bot]@users.noreply.github.com"
3442
- name: Publish to npm
3543
run: npm run release -- --ci --verbose
3644
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45+
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
3846
NPM_CONFIG_PROVENANCE: true

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stencil-community/web-types-output-target",
3-
"version": "1.0.7",
3+
"version": "1.0.8",
44
"description": "a stencil output target for generating web types",
55
"main": "dist/index.js",
66
"files": [

0 commit comments

Comments
 (0)