-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
13 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ on: | |
|
||
env: | ||
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
SSH_AUTH_SOCK: /tmp/ssh_agent.sock | ||
|
||
permissions: | ||
contents: write | ||
|
@@ -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 | ||
|