50 lines
1.0 KiB
YAML
50 lines
1.0 KiB
YAML
name: Release
|
|
run-name: Releasing DC
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 18
|
|
|
|
- name: Write .npmrc file
|
|
run: |
|
|
echo "$NPMRC" > client/.npmrc
|
|
echo "legacy-peer-deps=true" >> client/.npmrc
|
|
shell: bash
|
|
env:
|
|
NPMRC: ${{ secrets.NPMRC}}
|
|
|
|
- name: Install ZIP
|
|
run: |
|
|
apt-get update
|
|
apt-get install zip
|
|
|
|
- name: release-build
|
|
run: |
|
|
cd client
|
|
npm ci
|
|
npm run build
|
|
zip -r dist.zip ./dist
|
|
|
|
- name: Install Semantic Release and plugins
|
|
run: |
|
|
npm i
|
|
npm i -g semantic-release
|
|
|
|
- name: Release
|
|
run: |
|
|
GITEA_TOKEN=${{ secrets.RELEASE_TOKEN }} GITEA_URL=https://git.datacontroller.io semantic-release
|
|
|
|
- name: Release Typedoc
|
|
run: |
|
|
cd client
|
|
npm run typedoc
|
|
# deploy docs |