Skip to content

Commit

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

fix

test

try
  • Loading branch information
johanneskares committed Jun 14, 2024
1 parent 8d019f1 commit f4192af
Show file tree
Hide file tree
Showing 3 changed files with 7,056 additions and 126 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,24 @@ 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
with:
node-version: lts/*
registry-url: "https://registry.npmjs.org"
- name: Install dependencies
run: npm ci
- name: Install Playwright Browsers
Expand All @@ -30,9 +35,13 @@ 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: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- 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 f4192af

Please sign in to comment.