Skip to content

Commit

Permalink
Github token - attempt 2
Browse files Browse the repository at this point in the history
Signed-off-by: mposolda <[email protected]>
  • Loading branch information
mposolda committed Dec 16, 2024
1 parent d3dac7f commit 8e9a687
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ jobs:
branch: ${{ github.ref_name }}
tag: nightly
nightly: true
secrets:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# secrets:
# GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/x-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ on:
required: true
type: boolean
secrets:
GH_TOKEN:
required: true
# GH_TOKEN:
# required: true
NPM_TOKEN:
required: false

Expand All @@ -33,7 +33,7 @@ jobs:
runs-on: ubuntu-latest
# TODO:mposolda Needed for "gh"
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -87,12 +87,12 @@ jobs:
done
gh release upload ${{ inputs.tag }} keycloak-nodejs-connect.tgz --clobber
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish release
run: gh release edit ${{ inputs.tag }} --repo ${{ inputs.gh-org }}/keycloak-nodejs-connect --draft=false
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Publish to NPM
if: ${{ !inputs.nightly }}
Expand Down

0 comments on commit 8e9a687

Please sign in to comment.