Skip to content

Commit

Permalink
Publish prerelease support (#55)
Browse files Browse the repository at this point in the history
## Description

<!-- Describe your changes in detail -->
<!-- Does this fix a bug, implement a new feature, etc? -->

### Related Issue(s)

<!-- Reference the issue this PR relates to -->
<!-- Use keywords if possible (ex. Closes #10 ) -->
<!--
https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/using-keywords-in-issues-and-pull-requests
-->

## Screenshots

<!-- (if applicable) -->
  • Loading branch information
riccjohn authored Jun 12, 2024
2 parents eb8a7da + fed28ef commit faae295
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
release:
types: [published]
jobs:
build:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
Expand All @@ -17,6 +17,11 @@ jobs:
registry-url: 'https://registry.npmjs.org'
- run: yarn install --frozen-lockfile
- run: yarn build
- run: npm publish --provenance --access public
- run: |
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
npm publish --provenance --access public --tag beta
else
npm publish --provenance --access public
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"url": "git+https://github.com/riccjohn/osr-generators.git"
},
"private": false,
"version": "0.0.4-canary.0",
"version": "0.0.4-canary.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": [
Expand Down

0 comments on commit faae295

Please sign in to comment.