build(deps): bump axios and start-server-and-test (#119) #54
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: Release | |
on: | |
push: | |
branches: [master, next] | |
concurrency: | |
group: release-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/cache@v3 | |
with: | |
path: ~/.npm | |
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }} | |
restore-keys: | | |
${{ runner.os }}-node- | |
- name: Install | |
run: npm ci | |
- name: Run Unit Test | |
run: npm run test:unit | |
- name: Build | |
if: ${{ github.ref == 'refs/heads/master' }} | |
run: npm run build:demo | |
- name: Run E2E Test | |
uses: cypress-io/github-action@v5 | |
with: | |
start: npm run preview | |
record: true | |
browser: chrome | |
env: | |
# 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 }} | |
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }} | |
- name: Deploy to vue-live.surge.sh | |
if: ${{ github.ref == 'refs/heads/master' }} | |
uses: dswistowski/surge-sh-action@v1 | |
with: | |
domain: "vue-live.surge.sh" | |
project: "./dist/" | |
login: ${{ secrets.SURGE_LOGIN }} | |
token: ${{ secrets.SURGE_TOKEN }} | |
- name: Build | |
run: npm run build:lib | |
- name: Typings | |
run: npm run types:lib | |
- name: Release | |
run: npx semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |