Skip to content

Commit d32aeea

Browse files
committed
ci: 🎡 WIP package publishing in CI
1 parent 9e8c566 commit d32aeea

File tree

1 file changed

+12
-10
lines changed

1 file changed

+12
-10
lines changed

.github/workflows/tag-publish.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ jobs:
3131
github.event.release.prerelease == true
3232
runs-on: ubuntu-latest
3333
steps:
34+
- name: 🔄 Init Cache
35+
uses: ./.github/actions/npm-cache
36+
3437
- name: Publish experimental Packages to NPM
3538
run: |
3639
GITHUB_SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-7)
@@ -48,6 +51,9 @@ jobs:
4851
- name: ⬇️ Checkout repo
4952
uses: actions/checkout@v3
5053

54+
- name: 🔄 Init Cache
55+
uses: ./.github/actions/npm-cache
56+
5157
- name: Publish stable packages
5258
run: |
5359
SEMVER_VERSION=$(npx find-versions-cli ${{ github.event.release.tag_name }})
@@ -58,16 +64,6 @@ jobs:
5864
npm version --no-git-tag-version $VALID_SEMVER_VERSION --workspace=@ci-cd/abcd
5965
npm run publish:abcd
6066
61-
- uses: actions/github-script@v6
62-
with:
63-
script: |
64-
github.rest.repos.updateRelease({
65-
owner: context.payload.repository.owner.login,
66-
repo: context.payload.repository.name,
67-
release_id: context.payload.release.id,
68-
body: process.env.CHANGELOG_TEXT
69-
})
70-
7167
publishnextgithub:
7268
name: Publish experimental Packages to GitHub registry
7369
needs: [test, cypress]
@@ -79,6 +75,9 @@ jobs:
7975
github.event.release.prerelease == true
8076
runs-on: ubuntu-latest
8177
steps:
78+
- name: 🔄 Init Cache
79+
uses: ./.github/actions/npm-cache
80+
8281
- name: Publish experimental Packages to GitHub
8382
run: |
8483
echo "publish next to github"
@@ -92,6 +91,9 @@ jobs:
9291
- name: ⬇️ Checkout repo
9392
uses: actions/checkout@v3
9493

94+
- name: 🔄 Init Cache
95+
uses: ./.github/actions/npm-cache
96+
9597
- name: Publish stable Packages to GitHub
9698
run: |
9799
echo "publish latest to github"

0 commit comments

Comments
 (0)