Skip to content

Commit

Permalink
ci: publish pre-release
Browse files Browse the repository at this point in the history
  • Loading branch information
aelesbao committed Nov 15, 2023
1 parent e668b13 commit 298cc2d
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
name: Publish package to npm

on:
push:
tags:
- "v*"
release:
types: [published]

jobs:
build:
Expand All @@ -16,6 +15,6 @@ jobs:
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm run build
- run: npm publish --access public
- run: npm publish --tag ${{ github.event.release.prerelease == true && 'pre' || 'latest' }} --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 298cc2d

Please sign in to comment.