Skip to content

Commit

Permalink
go
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Dec 1, 2022
1 parent 7726ef6 commit 1a9f096
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ jobs:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PRERELEASE_TAG: beta
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
Expand Down Expand Up @@ -97,9 +98,9 @@ jobs:
- name: Publish
if: fromJSON(steps.release.outputs.result)
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
TAG_NAME: ${{ fromJSON(steps.release.outputs.result).tag_name }}
PRERELEASE: ${{ (fromJSON(steps.release.outputs.result).prerelease && '--tag beta') || '' }}
PRERELEASE_TAG: beta
PRERELEASE: ${{ (fromJSON(steps.release.outputs.result).prerelease && '--tag ${{ env.PRERELEASE_TAG }}') || '' }}
run: |
npm run build
npm publish --tag ${{ env.TAG_NAME }} ${{ env.PRERELEASE }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fabricjs-tagging-ci",
"version": "1.2.1-beta.4",
"version": "1.2.1-beta.5",
"description": "Repo for testing tagging, releasing etc. via CI",
"main": "index.js",
"repository": {
Expand Down

0 comments on commit 1a9f096

Please sign in to comment.