From 2ca1079984104ce9f6ea11d71ed3e85f0a18fa82 Mon Sep 17 00:00:00 2001 From: c43721 Date: Sat, 2 Nov 2024 15:18:36 -0500 Subject: [PATCH] chore(core): add actions --- .github/labeler.yml | 15 +++++++++++++++ .github/workflows/labeler.yml | 14 ++++++++++++++ .github/workflows/publish-javscript-sdk.yml | 21 +++++++++++++++++++++ 3 files changed, 50 insertions(+) create mode 100644 .github/labeler.yml create mode 100644 .github/workflows/labeler.yml create mode 100644 .github/workflows/publish-javscript-sdk.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000..f7b939d --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,15 @@ +sdk: + - changed-files: + - any-glob-to-any-file: javscript_sdk/** +logstf: + - changed-files: + - any-glob-to-any-file: logstf/** +etf2l: + - changed-files: + - any-glob-to-any-file: etf2l/** +rgl: + - changed-files: + - any-glob-to-any-file: rgl/** +demostf: + - changed-files: + - any-glob-to-any-file: demostf/** diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000..aad679e --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,14 @@ +name: "Pull Request Labeler" +on: + - pull_request_target + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/labeler@v5 + with: + sync-labels: true diff --git a/.github/workflows/publish-javscript-sdk.yml b/.github/workflows/publish-javscript-sdk.yml new file mode 100644 index 0000000..d2804cf --- /dev/null +++ b/.github/workflows/publish-javscript-sdk.yml @@ -0,0 +1,21 @@ +name: Publish Javascript SDK +on: + push: + branches: + - main + paths: + - 'javascript-sdk/**' + +jobs: + publish: + runs-on: ubuntu-latest + + permissions: + contents: read + id-token: write + + steps: + - uses: actions/checkout@v4 + + - name: Publish package + run: npx jsr publish \ No newline at end of file