Skip to content

Commit

Permalink
Endrer fra å bruke generisk github token til app token for å trigge f…
Browse files Browse the repository at this point in the history
…lere workflows (#514)
  • Loading branch information
adrianflatner authored Oct 3, 2023
1 parent 8f7b106 commit fbce1f9
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,19 @@ jobs:
- name: Install Dependencies
run: npm ci

- name: Generate an app token
id: generate_token
uses: actions/create-github-app-token@v1
with:
app_id: ${{ secrets.WORKFLOW_MANAGER_ID }}
private_key: ${{ secrets.WORKFLOW_MANAGER_PRIVATE_KEY }}

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: npm run publish-packages
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit fbce1f9

Please sign in to comment.