-
Notifications
You must be signed in to change notification settings - Fork 84
34 lines (30 loc) · 864 Bytes
/
release.yaml
File metadata and controls
34 lines (30 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Release
on:
push:
branches:
- main
permissions:
contents: write
id-token: write # Required for OIDC
env:
FORCE_COLOR: true
jobs:
release:
name: Release
runs-on: ubuntu-latest
if: ${{ github.repository == 'cloud-annotations/docusaurus-openapi' && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- uses: actions/setup-node@v6
with:
node-version: "*"
registry-url: "https://registry.npmjs.org"
- name: Release
run: npx ts-node --transpile-only scripts/publish.ts
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}