Skip to content

Commit

Permalink
Let's try this
Browse files Browse the repository at this point in the history
- Add write permission
- Fetch full main branch
- Set remote origin with token
  • Loading branch information
MinaKemp committed Dec 19, 2024
1 parent eacbc5a commit 133502f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,20 @@ on:
release:
types: [published]

permissions:
contents: write

jobs:
publish-release:
name: Publish release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0
fetch-tags: true

- name: Set up Node.js
uses: actions/setup-node@v4
Expand All @@ -27,6 +34,7 @@ jobs:
run: |
git config --global user.name "${GITHUB_ACTOR}"
git config --global user.email "${GITHUB_ACTOR_ID}+${GITHUB_ACTOR}@users.noreply.github.com"
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY
- name: Update package.json version
run: |
Expand Down

0 comments on commit 133502f

Please sign in to comment.