-
-
Notifications
You must be signed in to change notification settings - Fork 7
38 lines (30 loc) · 1013 Bytes
/
shipit.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Shipit
on:
push:
branches:
- master
env:
CI: true
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
# Number of commits to fetch. 0 indicates all history for all branches and tags (Shipit requires it).
fetch-depth: 0
- name: Use Node.js 20.x
uses: actions/[email protected]
with:
node-version: 20.x
cache: 'yarn'
- name: Install Yarn dependencies
run: yarn install --immutable
- name: Prepare Shipit
run: |
mkdir -p ~/.ssh
echo "${{ secrets.SSH_SHIPIT_PRIVATE_KEY }}" | tr -d '\r' > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan -H 'github.com' >> ~/.ssh/known_hosts
- name: Run Shipit
run: yarn monorepo-babel-node src/monorepo-shipit/bin/shipit.js --config-dir=src/monorepo-shipit/config --committer-name=adeira-github-bot [email protected]