Skip to content

Commit

Permalink
chore: attempt release beta
Browse files Browse the repository at this point in the history
  • Loading branch information
arturosdg committed Oct 17, 2024
1 parent abe2404 commit e9e555d
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
push:
tags:
- 'v*.*.*'
- 'v*.*.*-beta*'

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand All @@ -16,7 +18,13 @@ jobs:
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm version --no-git-tag-version ${GITHUB_REF##*/}
- run: npm run publish-package
- name: Publish package
run: |
if [[ ${{ github.ref }} == *-beta* ]]; then
npm publish --tag beta
else
npm publish
fi
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
- name: Build Changelog
Expand All @@ -34,4 +42,4 @@ jobs:
release_name: Release ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
prerelease: false
prerelease: ${{ contains(github.ref, '-beta') }}

0 comments on commit e9e555d

Please sign in to comment.