Skip to content

Commit 40f2efb

Browse files
authored
Simplify publish-beta workflow by removing steps
Removed dependency installation and npm tag determination steps.
1 parent d91c695 commit 40f2efb

File tree

1 file changed

+1
-28
lines changed

1 file changed

+1
-28
lines changed

.github/workflows/publish-beta.yml

Lines changed: 1 addition & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -23,35 +23,8 @@ jobs:
2323
with:
2424
node-version: '20.x'
2525

26-
- name: Install dependencies
27-
run: npm i
28-
env:
29-
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
30-
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: true
31-
32-
- name: Determine npm tag
33-
id: npm_tag
34-
run: |
35-
TAG="${{ github.event.release.tag_name }}"
36-
if echo "$TAG" | grep -qE "alpha|-alpha|\.a\."; then
37-
echo "tag=alpha" >> $GITHUB_OUTPUT
38-
elif echo "$TAG" | grep -qE "beta|-beta|\.b\."; then
39-
echo "tag=beta" >> $GITHUB_OUTPUT
40-
elif echo "$TAG" | grep -qE "rc|-rc|\.rc\."; then
41-
echo "tag=rc" >> $GITHUB_OUTPUT
42-
elif [ "${{ github.event.release.prerelease }}" = "true" ]; then
43-
echo "tag=beta" >> $GITHUB_OUTPUT
44-
else
45-
echo "tag=latest" >> $GITHUB_OUTPUT
46-
fi
47-
48-
- name: Configure git
49-
run: |
50-
git config user.name "GitHub CD"
51-
git config user.email "github-cd@example.com"
52-
5326
- name: Set package version
5427
run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
5528

5629
- name: Publish to npm
57-
run: npm publish --provenance --access public --tag ${{ steps.npm_tag.outputs.tag }}
30+
run: npm publish --provenance --access public --tag beta

0 commit comments

Comments
 (0)