Skip to content

Commit 6b786ad

Browse files
committed
Update npm-publish action
1 parent bccf33f commit 6b786ad

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on:
55
types: [published]
66

77
jobs:
8-
build:
8+
publish:
99
runs-on: ubuntu-latest
1010
permissions:
1111
contents: read
@@ -17,11 +17,11 @@ jobs:
1717
node-version: 24
1818
registry-url: 'https://registry.npmjs.org'
1919
- run: npm ci
20+
- run: npx playwright install
2021
- run: npm test
21-
# Check if the release tag is a semver release (e.g., v1.2.3) or a pre-release (e.g., v1.2.3-alpha)
2222
- run: |
23-
if [[ ${{ github.event.release.tag_name }} =~ ^v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
24-
npm publish --provenance
25-
else
23+
if [[ ${{ github.event.release.prerelease }}; then
2624
npm publish --provenance --tag alpha
25+
else
26+
npm publish --provenance
2727
fi

0 commit comments

Comments
 (0)