This repository has been archived by the owner on Jun 6, 2024. It is now read-only.
Fix build path #36
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
name: "npm deploy" | |
on: | |
release: | |
types: | |
- created | |
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: '20' | |
registry-url: https://npm.pkg.github.com | |
- name: install dependencies | |
run: npm install | |
- name: build | |
run: npm run build | |
- 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 |