Update yml file
This commit is contained in:
parent
6961c7107c
commit
334024de14
30
.github/workflows/publish.yml
vendored
30
.github/workflows/publish.yml
vendored
@ -1,11 +1,11 @@
|
|||||||
---
|
---
|
||||||
name: Publish
|
name: Publish
|
||||||
|
|
||||||
"on":
|
'on':
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+"
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
- "v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+"
|
- 'v[0-9]+.[0-9]+.[0-9]+-pre[0-9]+'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@ -32,6 +32,30 @@ jobs:
|
|||||||
- name: Test
|
- name: Test
|
||||||
run: |
|
run: |
|
||||||
yarn test:coverage
|
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)
|
- name: Push release to npm (public)
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|
||||||
|
Loading…
Reference in New Issue
Block a user