Skip to content

Commit

Permalink
Merge pull request #16 from inversify/chore/fix-publish-action
Browse files Browse the repository at this point in the history
Fix publish action
  • Loading branch information
notaphplover authored Oct 16, 2024
2 parents e5319d0 + 8998dd3 commit 7d6d3dc
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ on:
workflow_dispatch:
secrets:
NPM_TOKEN:
required: false
required: true
permissions:
actions: read
contents: write
issues: write
pull-requests: write
jobs:
publish:
name: Bump package versions and publish to npm.
Expand All @@ -20,18 +25,12 @@ jobs:

- uses: ./.github/actions/setup

- id: create_token
uses: tibdex/github-app-token@v2
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: ${{ steps.create_token.outputs.token }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7d6d3dc

Please sign in to comment.