Skip to content

Commit

Permalink
Fix publishing dure to reusable workflow in different org
Browse files Browse the repository at this point in the history
  • Loading branch information
acelaya committed Apr 9, 2024
1 parent 4c5ff7d commit 315cc79
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
28 changes: 24 additions & 4 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,27 @@ on:
- 'v*'

jobs:
ci:
uses: shlinkio/github-actions/.github/workflows/js-lib-publish.yml@main
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
npm-package:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm version ${GITHUB_REF#refs/tags/v} --git-tag-version=false
- run: npm run build
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

github-release:
needs: ['npm-package']
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: docker://antonyurchenko/git-release:latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ALLOW_EMPTY_CHANGELOG: "true"
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,23 @@ All notable changes to this project will be documented in this file.

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).

## [2.3.1] - 2024-04-09
### Added
* *Nothing*

### Changed
* *Nothing*

### Deprecated
* *Nothing*

### Removed
* *Nothing*

### Fixed
* Fix incorrect publishing


## [2.3.0] - 2024-04-08
### Added
* *Nothing*
Expand Down

0 comments on commit 315cc79

Please sign in to comment.