Skip to content

Commit

Permalink
fix: release with SSH
Browse files Browse the repository at this point in the history
  • Loading branch information
dabrad26 committed Nov 9, 2023
1 parent ae1c288 commit 8c8718c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
build:
if:
github.actor != 'carbon-bot'
&& !startsWith(github.event.head_commit.message, 'ci-skip')
&& !contains(github.event.head_commit.message, 'ci-skip')
name: Create release - Node.js v18.16.1
runs-on: ubuntu-latest

Expand All @@ -29,10 +29,22 @@ jobs:
yarn install --cwd example --frozen-lockfile
yarn install --frozen-lockfile
- name: Initialize Git user
run: |
git config --global user.name "David Bradshaw"
git config --global user.email "[email protected]"
- name: Setup SSH
run: |
mkdir -p ~/.ssh
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan github.com >> ~/.ssh/known_hosts
env:
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Deploy to Github & NPM 🚀
run: |
git config --global user.email "[email protected]"
git config --global user.name "carbon-bot"
npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }}
yarn release --ci
env:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ android/keystores/debug.keystore
lib/

# Documentation
docs
/docs

0 comments on commit 8c8718c

Please sign in to comment.