4a91a7d2e2
* fix repo in api client Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: re-organise files to match their interface Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * core: include version in script tags Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * cleanup maybe broken Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * revert rename Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: get rid of Client.ts Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * move more to common Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * more moving Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * format Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * unfuck files that vscode fucked, thanks Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * move more Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * finish moving (maybe) Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * ok more moving Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix more stuff that vs code destroyed Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * get rid "web" prefix for virtual package Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix locales Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * use custom base element Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix css file Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * don't run autoDetectLanguage when importing locale Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * fix circular dependencies Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> * web: fix build Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org> Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
42 lines
1.2 KiB
YAML
42 lines
1.2 KiB
YAML
name: authentik-web-api-publish
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'schema.yml'
|
|
workflow_dispatch:
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3.4.1
|
|
with:
|
|
node-version: '16'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
- name: Generate API Client
|
|
run: make gen-client-ts
|
|
- name: Publish package
|
|
working-directory: gen-ts-api/
|
|
run: |
|
|
npm ci
|
|
npm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
|
|
- name: Upgrade /web
|
|
working-directory: web/
|
|
run: |
|
|
export VERSION=`node -e 'console.log(require("../gen-ts-api/package.json").version)'`
|
|
npm i @goauthentik/api@$VERSION
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v4
|
|
id: cpr
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
branch: update-web-api-client
|
|
commit-message: "web: bump API Client version"
|
|
title: "web: bump API Client version"
|
|
body: "web: bump API Client version"
|
|
delete-branch: true
|
|
signoff: true
|