Skip to content
This repository has been archived by the owner on Jun 6, 2024. It is now read-only.

Commit

Permalink
update deployment (add playwright testing)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bernhard committed Jan 31, 2024
1 parent 1e15e74 commit 0a140f4
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,34 @@ on:

jobs:
deploy:

runs-on: ubuntu-latest

steps:

- name: checkout code
uses: actions/checkout@v2

- name: setup node
uses: actions/setup-node@v2
with:
node-version: '16'
registry-url: https://npm.pkg.github.com
node-version: '20'
registry-url: https://npm.pkg.github.com

- name: install dependencies
run: npm install

- name: build
run: npm run build

- name: test
run: npm t
- name: Install playwright browsers
run: npx playwright install --with-deps

- name: Run tests
run: npx playwright test --update-snapshots --reporter=list

- name: security
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc

- name: deploy npmjs.com
run: npm publish --access public
run: npm publish --access public

0 comments on commit 0a140f4

Please sign in to comment.