mirror of
https://github.com/goauthentik/authentik
synced 2026-04-25 17:15:26 +02:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 6.0.1 to 6.0.2.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e8c483db8...de0fac2e45)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-version: 6.0.2
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
67 lines
2.4 KiB
YAML
67 lines
2.4 KiB
YAML
---
|
|
name: API - Publish Typescript client
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "schema.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
# Required for NPM OIDC trusted publisher
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- id: generate_token
|
|
uses: actions/create-github-app-token@29824e69f54612133e76f7eaac726eef6c875baf # v2
|
|
with:
|
|
app-id: ${{ secrets.GH_APP_ID }}
|
|
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
|
|
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v5
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v5
|
|
with:
|
|
node-version-file: web/package.json
|
|
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 i
|
|
npm publish --tag generated
|
|
- 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: Upgrade /web/packages/sfe
|
|
working-directory: web/packages/sfe
|
|
run: |
|
|
export VERSION=`node -e 'console.log(require("../gen-ts-api/package.json").version)'`
|
|
npm i @goauthentik/api@$VERSION
|
|
- uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v7
|
|
id: cpr
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.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
|
|
# ID from https://api.github.com/users/authentik-automation[bot]
|
|
author: authentik-automation[bot] <135050075+authentik-automation[bot]@users.noreply.github.com>
|
|
labels: dependencies
|
|
- uses: peter-evans/enable-pull-request-automerge@a660677d5469627102a1c1e11409dd063606628d # v3
|
|
with:
|
|
token: ${{ steps.generate_token.outputs.token }}
|
|
pull-request-number: ${{ steps.cpr.outputs.pull-request-number }}
|
|
merge-method: squash
|