diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0f3d5d2..bc2f37a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 "david.bradshaw@ibm.com" + + - 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 "carbon@us.ibm.com" - git config --global user.name "carbon-bot" npm set "//registry.npmjs.org/:_authToken" ${{ secrets.NPM_TOKEN }} yarn release --ci env: diff --git a/.gitignore b/.gitignore index 9def13d..1275940 100644 --- a/.gitignore +++ b/.gitignore @@ -68,4 +68,4 @@ android/keystores/debug.keystore lib/ # Documentation -docs +/docs