We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bccf33f commit 6b786adCopy full SHA for 6b786ad
.github/workflows/npm-publish.yml
@@ -5,7 +5,7 @@ on:
5
types: [published]
6
7
jobs:
8
- build:
+ publish:
9
runs-on: ubuntu-latest
10
permissions:
11
contents: read
@@ -17,11 +17,11 @@ jobs:
17
node-version: 24
18
registry-url: 'https://registry.npmjs.org'
19
- run: npm ci
20
+ - run: npx playwright install
21
- run: npm test
- # Check if the release tag is a semver release (e.g., v1.2.3) or a pre-release (e.g., v1.2.3-alpha)
22
- run: |
23
- if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
24
- npm publish --provenance
25
- else
+ if [[ ${{ github.event.release.prerelease }}; then
26
npm publish --provenance --tag alpha
+ else
+ npm publish --provenance
27
fi
0 commit comments