Skip to content

Commit

Permalink
Make sure pre-releases are not published with latest tag.
Browse files Browse the repository at this point in the history
  • Loading branch information
hildjj committed Oct 3, 2024
1 parent 3185a5e commit 4e48040
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,22 @@ jobs:
uses: 'euberdeveloper/ga-project-version@main'
- run: npm pkg delete devDependencies scripts pnpm browserslist packageManager
- name: Create Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
if: ${{ !contains(steps.vvver.outputs.version, '-') }}
run: npm run docs
- name: Deploy Docs
if: contains(steps.vvver.outputs.version, 'pre') == false
if: ${{ !contains(steps.vvver.outputs.version, '-') }}
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/_site
publish_branch: docs
- run: npm publish --access public --provenance
- name: Publish full release
run: npm publish --access public --provenance
if: ${{ !contains(steps.vvver.outputs.version, '-') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish pre-release
run: npm publish --access public --provenance --tag pre
if: ${{ contains(steps.vvver.outputs.version, '-') }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4e48040

Please sign in to comment.