Skip to content

Commit 8520e0f

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent e6b538c commit 8520e0f

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

.github/workflows/tag-publish.yml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,6 @@ jobs:
6161
publishstable:
6262
name: Publish stable packages
6363
if: github.event.release.target_commitish == 'test-package-publishing' && github.event.release.prerelease == false
64-
env:
65-
RELEASE_CONTEXT: ${{ toJson(github.event.release) }}
66-
TEST_CONTEXT: ${{ toJson(github.event) }}
6764
runs-on: ubuntu-latest
6865
steps:
6966
- name: ⬇️ Checkout repo
@@ -76,18 +73,14 @@ jobs:
7673
VALID_SEMVER_VERSION=$(node scripts/version-helper.js $SEMVER_VERSION)
7774
echo "Semver stable version unclean $SEMVER_VERSION"
7875
echo "Semver stable version valid $VALID_SEMVER_VERSION"
79-
echo "TEST_CONTEXT: $TEST_CONTEXT"
80-
echo "Repository: " ${{github.event.repository}}
81-
echo "Owner: " ${{github.event.repository.owner}}
82-
echo "Login: " ${{github.event.repository.owner.login}}
8376
8477
- uses: actions/github-script@v6
8578
with:
8679
script: |
8780
console.log(context)
8881
github.rest.repos.updateRelease({
89-
owner: github.event.repository.owner.login,
90-
repo: github.event.repository.name,
91-
release_id: github.event.release.id,
82+
owner: context.payload.owner.login,
83+
repo: context.payload.repository.name,
84+
release_id: context.payload.release.id,
9285
body: '👋 woo hoo!'
9386
})

0 commit comments

Comments
 (0)