Skip to content

Commit

Permalink
feat: update action versions, respect GitHubs prerelease checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
David Featherston committed Jul 2, 2024
1 parent 155dfb3 commit bb232d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ jobs:
packages: write
contents: write
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
registry-url: 'https://npm.pkg.github.com/'
node-version: 18
node-version: 20
- name: Set Git credentials
run: |
git config --global user.email "[email protected]"
Expand All @@ -26,6 +26,6 @@ jobs:
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to GH Package registry
run: npm publish
run: npm publish --tag ${{ github.event.release.prerelease && 'alpha' || 'latest' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit bb232d8

Please sign in to comment.