Skip to content

Commit

Permalink
Merge pull request #130 from fingerprintjs/chore/fix-release-action
Browse files Browse the repository at this point in the history
Add upload schema action
  • Loading branch information
TheUnderScorer authored Sep 12, 2024
2 parents 8d1e4d4 + 7bb1357 commit 9e680b4
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 8 deletions.
Binary file removed .changeset/changesets-rotten-candles-judge.zip
Binary file not shown.
5 changes: 5 additions & 0 deletions .changeset/wild-oranges-feel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'fingerprint-pro-server-api-openapi': minor
---

**events**: Introduce `PUT` endpoint for `/events` API
44 changes: 44 additions & 0 deletions .github/workflows/upload-schemas.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Upload schemas
on:
release:
types:
- published

jobs:
upload-schemas:
name: Upload schemas
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}

- name: 'Install pnpm'
uses: pnpm/action-setup@129abb77bf5884e578fcaf1f37628e41622cc371
with:
version: 9
run_install: true

- name: 'Build schemas'
run: pnpm build

- name: 'Zip examples'
run: zip -r examples.zip examples

- name: Upload schemas to a GitHub release
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: 'dist/schemas/*.yaml'
file_glob: true
tag: ${{ github.event.release.tag_name }}

- name: Upload examples to a GitHub release
uses: svenstaro/upload-release-action@04733e069f2d7f7f0b4aebc4fbdbce8613b03ccd
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: examples.zip
tag: ${{ github.event.release.tag_name }}



7 changes: 0 additions & 7 deletions CHANGELOG.md

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fingerprint-pro-server-api-openapi",
"private": true,
"version": "1.1.0",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"type": "module",
Expand Down

0 comments on commit 9e680b4

Please sign in to comment.