Skip to content

Commit

Permalink
feat: Add Semantic Release
Browse files Browse the repository at this point in the history
semantic

fix
  • Loading branch information
johanneskares committed Jun 14, 2024
1 parent 8d019f1 commit 170e15c
Show file tree
Hide file tree
Showing 3 changed files with 7,053 additions and 125 deletions.
19 changes: 13 additions & 6 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,18 @@ on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read

jobs:
test:
timeout-minutes: 60
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
Expand All @@ -30,9 +35,11 @@ jobs:
name: playwright-report
path: playwright-report/
retention-days: 30
- name: Publish the Package
- name: Run Build
run: |
npm run build
npm publish --access public
- name: Release
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
Loading

0 comments on commit 170e15c

Please sign in to comment.