Skip to content

Commit

Permalink
chore: update publish gh action to rely on gh app
Browse files Browse the repository at this point in the history
  • Loading branch information
notaphplover committed Oct 16, 2024
1 parent 0296d3a commit 1162434
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ on:
npm-token:
description: npm token to be used to publish npm packages
required: false
permissions:
actions: read
contents: write
issues: write
pull-requests: write
jobs:
publish:
name: Bump package versions and publish to npm.
Expand All @@ -26,12 +21,18 @@ jobs:

- uses: ./.github/actions/setup

- uses: actions/create-github-app-token@v1
id: create_token
with:
app-id: ${{ vars.GH_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}

- name: Create Release Pull or publish changes
uses: changesets/action@v1
with:
commit: "chore: bump package versions"
publish: pnpm run release
title: "[Changesets] Bump package versions"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.create_token.outputs.token }}
NPM_TOKEN: ${{ inputs.npm-token }}

0 comments on commit 1162434

Please sign in to comment.