Update yml file

This commit is contained in:
Joe 2022-03-08 15:08:15 +00:00 committed by Dexter Edwards
parent 6961c7107c
commit 334024de14

View File

@ -1,11 +1,11 @@
---
name: Publish
"on":
'on':
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+"
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+'
jobs:
build:
@ -32,6 +32,30 @@ jobs:
- name: Test
run: |
yarn test:coverage
- name: Cypress run
uses: cypress-io/github-action@v2
with:
wait-on: 'http://localhost:4200'
working-directory: apps/explorer-e2e
wait-on-timeout: 120
record: true
env:
# pass the Dashboard record key as an environment variable
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
# Recommended: pass the GitHub token lets this action correctly
# determine the unique run id necessary to re-run the checks
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# pass the project ID from the secrets through environment variable
CYPRESS_PROJECT_ID: ${{ secrets.PROJECT_ID }}
- uses: actions/upload-artifact@v2
if: ${{ always() }}
with:
name: coverage
path: frontend/automation/coverage
# run: |
# nx e2e explorer-e2e
- name: Push release to npm (public)
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}