Skip to content

Commit

Permalink
fix: release process
Browse files Browse the repository at this point in the history
  • Loading branch information
koblas committed Jun 25, 2023
1 parent 7cc2089 commit d9f4fc2
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,16 +41,13 @@ jobs:
- name: Build
run: npm run build
- name: Release
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: npx semantic-release
- name: Get Version
id: version
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
run: echo "version=$(npx semantic-release --version)" >> "$GITHUB_OUTPUT"
run: |
npx semantic-release
echo "version=$(npx semantic-release --version)" >> $GITHUB_OUTPUT
- name: GitHub Release update
uses: softprops/action-gh-release@v1
#if: startsWith(github.ref, 'refs/tags/')
Expand All @@ -59,6 +56,7 @@ jobs:
# note you'll typically need to create a personal access token
# with permissions to create releases in the other repoj
#token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}
tag_name: ${{ steps.release.outputs.version }}
files: |
LICENSE.md
README.md
Expand Down

0 comments on commit d9f4fc2

Please sign in to comment.