Skip to content

Commit

Permalink
fix(ci): use admin pat to overcome branch protection
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-bromann committed Feb 28, 2025
1 parent e942c2b commit 947d720
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/git-conventional-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ changelog:
- chore # Miscellaneous commits e.g. modifying `.gitignore`
- docs
- merge
includeInvalidCommits: true
includeInvalidCommits: false
commitScopes: ["deps", "internal", "ci"]
commitIgnoreRegexPattern: "^WIP "
headlines:
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/actions/publish-npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ inputs:
description: 'The tag to publish to on NPM.'
token:
description: 'The NPM authentication token required to publish.'
github-token:
description: 'The GitHub token required to push to the repository.'
required: false

runs:
using: 'composite'
Expand Down Expand Up @@ -69,17 +72,14 @@ runs:
- name: Push Release
if: inputs.tag == 'latest'
uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ inputs.github-token }}
with:
body_path: CHANGELOG.md
generate_release_notes: true
make_latest: true
tag_name: ${{ steps.package-version.outputs.PKG_JSON_VERSION }}

- name: Push Version
if: inputs.tag == 'latest'
run: git push origin main
shell: bash

# Log the git diff for easy debugging
- name: Log Generated Changes
if: inputs.tag == 'dev'
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ jobs:
tag: latest
version: ${{ inputs.releaseType }}
token: ${{ secrets.NPM_PAT_STENCIL_BOT }}

github-token: ${{ secrets.GH_ADMIN_PAT }}

0 comments on commit 947d720

Please sign in to comment.