From bd718c9d2e9fa71c4a1f410969b588b2e26e995b Mon Sep 17 00:00:00 2001 From: Jason Raitz Date: Thu, 11 Apr 2024 11:28:15 -0400 Subject: [PATCH 1/4] using the tag name for the version in npm --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a45f7b2..fda8cea 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -88,5 +88,5 @@ jobs: # NOTE: Assumes tag in form x.y.z # TODO: figure out why ${{github.event.release.tag_name}} doesn't work run: | - yarn version "${GITHUB_REF:10}" --immediate + yarn version "${github.ref_name}" --immediate yarn npm publish --access public --tag latest From 848d898a96b7a82d45b20c3c1cfcea6ecb4b6d1e Mon Sep 17 00:00:00 2001 From: Jason Raitz Date: Thu, 11 Apr 2024 14:03:51 -0400 Subject: [PATCH 2/4] adding debug job to github action --- .github/workflows/build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fda8cea..988ffd2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,12 @@ env: YARN_NPM_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN_LIB_NPM }} jobs: + debug: + runs-on: ubuntu-latest + + steps: + - name: get env + run: echo $GITHUB build: runs-on: ubuntu-latest From 3fc2ac799845f180d584e7e1cc25a78f74ac113c Mon Sep 17 00:00:00 2001 From: Jason Raitz Date: Thu, 11 Apr 2024 14:12:38 -0400 Subject: [PATCH 3/4] printing github context as json --- .github/workflows/build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 988ffd2..1569a78 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,7 +10,7 @@ jobs: steps: - name: get env - run: echo $GITHUB + run: echo "${{ toJson(github) }}" build: runs-on: ubuntu-latest From 1e2878daa104f151bd5c7ad1212299f1b93772b0 Mon Sep 17 00:00:00 2001 From: Jason Raitz Date: Thu, 11 Apr 2024 15:45:23 -0400 Subject: [PATCH 4/4] echoing the github env as a context parameter --- .github/workflows/build.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1569a78..53d21e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,8 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - - name: get env - run: echo "${{ toJson(github) }}" + - name: Dump GitHub context + env: + GITHUB_CONTEXT: ${{ toJson(github) }} + run: echo "${GITHUB_CONTEXT}" build: runs-on: ubuntu-latest