File tree Expand file tree Collapse file tree 1 file changed +1
-28
lines changed
Expand file tree Collapse file tree 1 file changed +1
-28
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments