diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 5d8119c..4dade7a 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -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" diff --git a/CHANGELOG.md b/CHANGELOG.md index 06ee3db..ecb843a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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*