Skip to content

Commit

Permalink
connect with github token
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Parker committed Jul 25, 2024
1 parent 244920b commit f857c2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/genparker-build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ jobs:
needs: init
steps:
- uses: BesLogic/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}

- name: publish affected
run: npx nx affected --target=publish --head=${{needs.init.outputs.branch}} --base=$BEFORE_SHA --configuration=${{needs.init.outputs.environment}} --parallel=5
Expand Down
6 changes: 5 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: 'Monorepo setup'
description: 'A way to install and cache dependencies for a monorepo'
inputs:
github_token:
description: 'The token to authenticate with'
required: true
runs:
using: "composite"
steps:
Expand All @@ -13,7 +17,7 @@ runs:
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
password: ${{ inputs.github_token }}

- name: Cache dependencies
uses: actions/cache@v2
Expand Down

0 comments on commit f857c2a

Please sign in to comment.