Skip to content

Commit 2a50d14

Browse files
feat: update ci to autopublish
1 parent 421653b commit 2a50d14

File tree

2 files changed

+20
-1
lines changed

2 files changed

+20
-1
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,22 @@ jobs:
1414

1515
- name: Format and lint code ☑️
1616
run: npm run prepublishOnly
17+
release:
18+
needs: [check-and-test]
19+
runs-on: ubuntu-24.04
20+
if: github.ref == 'refs/heads/main'
21+
steps:
22+
- name: Checkout 🛎
23+
uses: actions/checkout@v4
24+
25+
- name: Install everything 📦
26+
run: npm ci
27+
28+
- name: Semantic Release 🚀
29+
uses: cycjimmy/semantic-release-action@v4
30+
with:
31+
branch: main
32+
tag_format: v${version}
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "playwright-performance-metrics",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "A performance metrics collection library for Playwright",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)