Skip to content

Commit 315cc79

Browse files
committed
Fix publishing dure to reusable workflow in different org
1 parent 4c5ff7d commit 315cc79

File tree

2 files changed

+41
-4
lines changed

2 files changed

+41
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,27 @@ on:
66
- 'v*'
77

88
jobs:
9-
ci:
10-
uses: shlinkio/github-actions/.github/workflows/js-lib-publish.yml@main
11-
secrets:
12-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
9+
npm-package:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: '20.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- run: npm ci
18+
- run: npm version ${GITHUB_REF#refs/tags/v} --git-tag-version=false
19+
- run: npm run build
20+
- run: npm publish --access public
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
23+
24+
github-release:
25+
needs: ['npm-package']
26+
runs-on: ubuntu-22.04
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: docker://antonyurchenko/git-release:latest
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
ALLOW_EMPTY_CHANGELOG: "true"

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org).
66

7+
## [2.3.1] - 2024-04-09
8+
### Added
9+
* *Nothing*
10+
11+
### Changed
12+
* *Nothing*
13+
14+
### Deprecated
15+
* *Nothing*
16+
17+
### Removed
18+
* *Nothing*
19+
20+
### Fixed
21+
* Fix incorrect publishing
22+
23+
724
## [2.3.0] - 2024-04-08
825
### Added
926
* *Nothing*

0 commit comments

Comments
 (0)