Skip to content

Commit

Permalink
Merge pull request #30 from capply/publish-workflow-improvement
Browse files Browse the repository at this point in the history
Improve publish workflow
  • Loading branch information
jnicklas authored May 27, 2024
2 parents a818a44 + 0191e4e commit 68bc5d6
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,12 @@ jobs:
node-version: 16.x
cache: "npm"

- name: Generate a token
id: generate-token
uses: actions/create-github-app-token@v1
with:
app-id: ${{ vars.CAPPLY_BOT_APP_ID }}
private-key: ${{ secrets.CAPPLY_BOT_SECRET }}
- run: npm install
- run: npm run build
- name: Create Release Pull Request or Publish
Expand All @@ -24,5 +30,5 @@ jobs:
with:
publish: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 68bc5d6

Please sign in to comment.