Skip to content

Commit

Permalink
Merge pull request #13 from ItsCurstin/fix/publish-workflow
Browse files Browse the repository at this point in the history
ci: update publish workflow with GitHub App token
  • Loading branch information
ItsCurstin authored Nov 15, 2024
2 parents d368ed8 + bf4c14c commit 4cf2e3a
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,29 @@ jobs:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.SEMANTIC_RELEASE_APP_ID }}
private_key: ${{ secrets.SEMANTIC_RELEASE_PRIVATE_KEY }}

- uses: pnpm/action-setup@v2
with:
version: 9.0.0

- uses: actions/setup-node@v4
with:
node-version: '22.11.0'
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- run: pnpm install
- run: pnpm run build
- run: pnpm release

- name: Release
run: pnpm release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4cf2e3a

Please sign in to comment.