-
-
Notifications
You must be signed in to change notification settings - Fork 0
74 lines (62 loc) · 1.94 KB
/
release.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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
name: 🚀 Release
on:
workflow_dispatch:
schedule:
- cron: "0 0 1 * *"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
name: Continuous Integration
uses: ./.github/workflows/__shared-ci.yml
npm-packages:
name: 📦 Publish NPM packages
needs: ci
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
- uses: hoverkraft-tech/ci-github-nodejs/actions/[email protected]
- uses: actions/download-artifact@v4
with:
name: build
path: /
- env:
NPM_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
GH_TOKEN: ${{ secrets.GH_PRIVATE_ACCESS_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
git config --local user.email "${{ github.actor }}@users.noreply.github.com"
git config --local user.name "${{ github.actor }}"
yarn lerna publish --force-publish --conventional-commits --create-release github --yes
documentation:
name: 📚 Publish documentation
needs: ci
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v4
- run: |
mkdir -p documentation
echo "theme: jekyll-theme-cayman" > documentation/_config.yml
cp README.md documentation/index.md
- uses: actions/configure-pages@v5
- uses: actions/jekyll-build-pages@v1
with:
source: documentation/
destination: documentation/_site
- uses: actions/upload-pages-artifact@v3
with:
path: documentation/_site
- name: 🌐 Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4