From ea8d34a83fe32159a8940aed42713453131136a8 Mon Sep 17 00:00:00 2001 From: SeiyaKobayashi Date: Mon, 26 Aug 2024 12:51:06 +0900 Subject: [PATCH 1/2] Fixed workflows --- .github/workflows/check.yml | 4 ++++ .github/workflows/publish.yml | 4 ++++ package.json | 2 +- packages/core/README-ja.md | 1 + packages/v1/README-ja.md | 1 + 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 1ca059b..2519bb7 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -22,9 +22,13 @@ jobs: v1: ${{ steps.filter.outputs.v1 }} steps: - uses: actions/checkout@v4 + - name: get git metadata + id: get-base + run: echo "value=$(git rev-parse HEAD~1)" >> $GITHUB_OUTPUT - uses: dorny/paths-filter@v3 id: filter with: + base: ${{ steps.get-base.outputs.value }} filters: | root: - '.github/**' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9bef1c7..270ecc4 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,9 +19,13 @@ jobs: v1: ${{ steps.filter.outputs.v1 }} steps: - uses: actions/checkout@v4 + - name: get git metadata + id: get-base + run: echo "value=$(git rev-parse HEAD~1)" >> $GITHUB_OUTPUT - uses: dorny/paths-filter@v3 id: filter with: + base: ${{ steps.get-base.outputs.value }} filters: | core: - 'packages/core/**' diff --git a/package.json b/package.json index 3be3ab7..a6210b2 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ ], "repository": "https://github.com/jcam1/sdks.git", "license": "MIT", - "version": "1.0.0", + "version": "1.1.0", "engines": { "node": "^20.12.0", "yarn": "^1.22.22" diff --git a/packages/core/README-ja.md b/packages/core/README-ja.md index e69de29..56e5957 100644 --- a/packages/core/README-ja.md +++ b/packages/core/README-ja.md @@ -0,0 +1 @@ +# JPYC Core SDK diff --git a/packages/v1/README-ja.md b/packages/v1/README-ja.md index e69de29..166ba54 100644 --- a/packages/v1/README-ja.md +++ b/packages/v1/README-ja.md @@ -0,0 +1 @@ +# JPYC V1 SDK From 6e43ca6d48237e5cee677a2435c58a858aecca87 Mon Sep 17 00:00:00 2001 From: SeiyaKobayashi Date: Mon, 26 Aug 2024 13:25:40 +0900 Subject: [PATCH 2/2] Fix workflow triggers --- .github/workflows/check.yml | 9 +-------- .github/workflows/publish.yml | 7 ++----- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 2519bb7..a212df2 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,14 +1,11 @@ name: static checks on: - push: - branches: - - main - - develop pull_request: branches: - main - develop + types: [opened, synchronize, reopened, closed] jobs: detect-changes: @@ -22,13 +19,9 @@ jobs: v1: ${{ steps.filter.outputs.v1 }} steps: - uses: actions/checkout@v4 - - name: get git metadata - id: get-base - run: echo "value=$(git rev-parse HEAD~1)" >> $GITHUB_OUTPUT - uses: dorny/paths-filter@v3 id: filter with: - base: ${{ steps.get-base.outputs.value }} filters: | root: - '.github/**' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 270ecc4..e2be52e 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,10 @@ name: publish packages to npm registry on: - push: + pull_request: branches: - main + types: [closed] paths: - 'packages/core/**' - 'packages/v1/**' @@ -19,13 +20,9 @@ jobs: v1: ${{ steps.filter.outputs.v1 }} steps: - uses: actions/checkout@v4 - - name: get git metadata - id: get-base - run: echo "value=$(git rev-parse HEAD~1)" >> $GITHUB_OUTPUT - uses: dorny/paths-filter@v3 id: filter with: - base: ${{ steps.get-base.outputs.value }} filters: | core: - 'packages/core/**'