Skip to content

Commit b807746

Browse files
committed
fix(devops): apparently using secrets.GITHUB_ACTION, it does not trigger followup workflows thus preventing the on: release to trigger. Combining the workflows into one.
1 parent 43deefa commit b807746

File tree

2 files changed

+8
-26
lines changed

2 files changed

+8
-26
lines changed

.github/workflows/npm-publish.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

.github/workflows/release-notes.yml renamed to .github/workflows/release.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
# https://github.com/elk-zone/elk/blob/main/.github/workflows/release.yml
33
# This action creates a release with every new tag that is created.
44
# It attaches release notes to the release which are based on the github commits / pull requests.
5-
name: Release Notes
5+
# Then publishes to NPM Registry.
6+
7+
name: Release Notes & Publish to NPM
68

79
permissions:
810
contents: write
@@ -24,7 +26,12 @@ jobs:
2426
uses: actions/setup-node@v4
2527
with:
2628
node-version: '22.x'
29+
registry-url: 'https://registry.npmjs.org'
2730

2831
- run: npx changelogithub
2932
env:
3033
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
35+
- run: npm publish --provenance --access public
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 commit comments

Comments
 (0)