🚀 Release #34
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
token: ${{ secrets.GH_PRIVATE_ACCESS_TOKEN }} | |
- uses: hoverkraft-tech/ci-github-nodejs/actions/setup-node@284b3a225640afe54977ca18caf464dff1ee856b # 0.14.0 | |
- uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v5.0.0 | |
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 }}" | |
npx lerna publish --force-publish --conventional-commits --create-release github --yes | |
documentation: | |
if: github.ref_name == github.event.repository.default_branch | |
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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- run: | | |
mkdir -p documentation | |
echo "theme: jekyll-theme-cayman" > documentation/_config.yml | |
cp README.md documentation/index.md | |
- uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 | |
- uses: actions/jekyll-build-pages@44a6e6beabd48582f863aeeb6cb2151cc1716697 # v1.0.13 | |
with: | |
source: documentation/ | |
destination: documentation/_site | |
- uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 | |
with: | |
path: documentation/_site | |
- name: 🌐 Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 |