Skip to content

Commit f4192af

Browse files
committed
feat: Add Semantic Release
semantic fix test try
1 parent 8d019f1 commit f4192af

File tree

3 files changed

+7056
-126
lines changed

3 files changed

+7056
-126
lines changed

.github/workflows/playwright.yml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,24 @@ on:
33
push:
44
branches:
55
- main
6-
pull_request:
7-
branches:
8-
- main
6+
7+
permissions:
8+
contents: read
9+
910
jobs:
1011
test:
1112
timeout-minutes: 60
1213
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write # to be able to publish a GitHub release
16+
issues: write # to be able to comment on released issues
17+
pull-requests: write # to be able to comment on released pull requests
18+
id-token: write # to enable use of OIDC for npm provenance
1319
steps:
1420
- uses: actions/checkout@v4
1521
- uses: actions/setup-node@v4
1622
with:
1723
node-version: lts/*
18-
registry-url: "https://registry.npmjs.org"
1924
- name: Install dependencies
2025
run: npm ci
2126
- name: Install Playwright Browsers
@@ -30,9 +35,13 @@ jobs:
3035
name: playwright-report
3136
path: playwright-report/
3237
retention-days: 30
33-
- name: Publish the Package
38+
- name: Run Build
3439
run: |
3540
npm run build
36-
npm publish --access public
41+
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
42+
run: npm audit signatures
43+
- name: Release
3744
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
45+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
47+
run: npx semantic-release

0 commit comments

Comments
 (0)