File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ pull_request :
8+ branches :
9+ - ' **'
10+
11+ jobs :
12+ test :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 20'
20+ cache : ' yarn'
21+
22+ - name : Install dependencies
23+ run : yarn install
24+
25+ - name : Lint
26+ run : yarn lint
27+
28+ - name : Unit Tests
29+ run : yarn test:ci
30+
31+ release :
32+ needs : test
33+ if : github.ref == 'refs/heads/main' && github.event_name == 'push'
34+ runs-on : ubuntu-latest
35+ steps :
36+ - uses : actions/checkout@v4
37+ with :
38+ fetch-depth : 0
39+
40+ - uses : actions/setup-node@v4
41+ with :
42+ node-version : ' 20'
43+ cache : ' yarn'
44+
45+ - name : Install dependencies
46+ run : yarn install
47+
48+ - name : Configure git
49+ run : |
50+ git config --global user.email "instantsearch-bot@algolia.com"
51+ git config --global user.name "Algolia"
52+
53+ - name : Trigger Ship.js release
54+ run : yarn shipjs trigger
55+ env :
56+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
57+ NPM_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Deploy to GitHub Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ jobs :
9+ deploy :
10+ runs-on : ubuntu-latest
11+ steps :
12+ - uses : actions/checkout@v4
13+
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : ' 20'
17+ cache : ' yarn'
18+
19+ - name : Install dependencies
20+ run : yarn install
21+
22+ - name : Configure git
23+ run : |
24+ git config --global user.email "instantsearch-bot@algolia.com"
25+ git config --global user.name "Algolia"
26+
27+ - name : Deploy to GitHub Pages
28+ run : yarn workspace website deploy:gh
29+ env :
30+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 1+ name : Prepare Release
2+
3+ on :
4+ schedule :
5+ # Every Tuesday at 09:00 UTC
6+ - cron : ' 0 9 * * 2'
7+ workflow_dispatch :
8+
9+ jobs :
10+ prepare :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ with :
15+ fetch-depth : 0
16+
17+ - uses : actions/setup-node@v4
18+ with :
19+ node-version : ' 20'
20+ cache : ' yarn'
21+
22+ - name : Install dependencies
23+ run : yarn install
24+
25+ - name : Configure git
26+ run : |
27+ git config --global user.email "instantsearch-bot@algolia.com"
28+ git config --global user.name "Algolia"
29+
30+ - name : Prepare release
31+ run : yarn run release --yes --no-browse
32+ env :
33+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 22
33<p align =" center " >
44 <a href =" http://npmjs.com/package/shipjs " ><img alt =" npm " src =" https://img.shields.io/npm/v/shipjs " ></a >
5- <a href =" https://circleci .com/gh/ algolia/shipjs " ><img alt =" CircleCI " src =" https://img.shields.io/circleci/build/gh/ algolia/shipjs " ></a >
5+ <a href =" https://github .com/algolia/shipjs/actions/workflows/ci.yml " ><img alt =" CI " src =" https://img.shields.io/github/actions/workflow/status/ algolia/shipjs/ci.yml?branch=main " ></a >
66 <a href =" https://github.com/algolia/shipjs/blob/master/LICENSE " ><img alt =" NPM " src =" https://img.shields.io/npm/l/shipjs " ></a >
77 <a href =" https://github.com/algolia/shipjs#contributors- " ><img alt =" All Contributors " src =" https://img.shields.io/badge/all_contributors-13-orange.svg " ></a >
88 <a href =" https://join.slack.com/t/shipjs/shared_invite/enQtODc3OTc3NjQ0NDg3LTU3ZDgyMzlkNzY2YTMxMGQ1MzE3OGMzZjMzYjU5Y2NmZDQ5Mzk1ZWUxZjk3NWFjMDIwYmI0ZGUyY2E2YTZkYzk " ><img alt =" Chat on Slack " src =" https://img.shields.io/badge/chat-on%20Slack-orange " ></a >
You can’t perform that action at this time.
0 commit comments