Skip to content

Commit

Permalink
just use ssh deploy..
Browse files Browse the repository at this point in the history
  • Loading branch information
ebenali committed Jan 16, 2024
1 parent beb83fa commit d4c919b
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ on:

env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
SSH_AUTH_SOCK: /tmp/ssh_agent.sock

permissions:
contents: write
Expand Down Expand Up @@ -43,15 +44,21 @@ jobs:
scope: "@MoreChickenDelivered"
- run: corepack enable

- name: Configure SSH/Git permissions
run: |
mkdir -p ~/.ssh
chmod 700 ~/.ssh
ssh-keyscan github.com >> ~/.ssh/known_hosts
chmod 600 ~/.ssh/known_hosts
ssh-agent -a $SSH_AUTH_SOCK >/dev/null 2>&1
ssh-add - <<< "${{ secrets.DEPLKEY_PRIV }}"
- run: git config --global user.email "[email protected]" && git config --global user.name "$GITHUB_ACTOR"
- run: yarn version patch
- run: echo "NEW_TAG=$(jq .version <package.json)" >> "$GITHUB_ENV"
- run: echo "NEW_TAG=$(jq .version <package.json)" >> "$GITHUB_ENV"
- run: git tag "v$NEW_TAG"

- uses: ad-m/github-push-action@master
with:
force: true
tags: true
- run: git remote set-url origin [email protected]:/MoreChickenDelivered/md-loader
- run: git push --tags && git push

- run: yarn npm publish

0 comments on commit d4c919b

Please sign in to comment.