Some checks failed
CI / Run lints and checks (push) Failing after 47s
CI / Run tests (push) Failing after 1s
CI / Run race tests (push) Failing after 5s
CI / Build CLI docs (push) Has been skipped
CI / Run buf actions (push) Failing after 5s
CodeQL / Analyze (go) (push) Failing after 3s
CodeQL / Analyze (javascript) (push) Failing after 2s
Docker Image Scanners / scanners (push) Failing after 3s
Format / format (push) Failing after 3s
Synchronize Issue Labels / Synchronize Issue Labels (push) Has been skipped
CI / Generate release (push) Has been skipped
CI / Draft newsletter (push) Has been skipped
CI / Pending approval Slack notification (push) Has been skipped
CI / Send newsletter (push) Has been skipped
41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Publish gRPC client to npm
|
|
|
|
on:
|
|
release:
|
|
types:
|
|
- created
|
|
workflow_dispatch:
|
|
inputs:
|
|
version:
|
|
required: true
|
|
description: The version to release
|
|
|
|
jobs:
|
|
btp:
|
|
runs-on: ubuntu-latest
|
|
name: Publish
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
- uses: actions/setup-node@v6
|
|
with:
|
|
node-version: "24"
|
|
registry-url: "https://registry.npmjs.org"
|
|
- run: sudo npm i -g npm@7
|
|
- name: Bump version
|
|
run: |-
|
|
cd gen/es
|
|
jq '.version = (env.RELEASE_VERSION | sub("(^refs/tags/v)|(^v)"; ""))' package.json > package.json.tmp \
|
|
&& mv package.json.tmp package.json
|
|
env:
|
|
RELEASE_VERSION: ${{ github.event.inputs.version || github.ref }}
|
|
- run: |-
|
|
git config --global user.email "60093411+ory-bot@users.noreply.github.com"
|
|
git config --global user.name "ory-bot"
|
|
git add gen/es/package.json
|
|
git commit -m "autogen: bump node gRPC client version"
|
|
- run: |-
|
|
cd gen/es
|
|
npm publish --access public
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN_AENEASR }}
|