Skip to content

Commit 7bec5e8

Browse files
authored
feat: testing tag parsing
1 parent eeddcdc commit 7bec5e8

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,35 @@ name: Publish to NPM
22
on:
33
release:
44
types: [published]
5+
push:
6+
branches:
7+
- tp/**
58

69
jobs:
710
publish:
811
runs-on: ubuntu-latest
912
steps:
1013
- uses: actions/checkout@v3
14+
15+
- name: Parse version from tag
16+
id: version
17+
uses: release-kit/semver@v2
18+
with:
19+
fallback: 'v7.1.0-alpha+1'
20+
1121
- uses: actions/setup-node@v3
1222
with:
1323
node-version: '18.x'
1424
- run: yarn install
1525
- run: yarn test
26+
1627
- uses: JS-DevTools/npm-publish@v3
28+
if: "!github.event.release.prerelease"
1729
with:
1830
token: ${{ secrets.NPM_TOKEN }}
1931
access: public
32+
dry_run: true
33+
2034
- name: Upload npm debug log
2135
if: failure() # This step will run only if the previous steps failed
2236
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)