Skip to content

Commit

Permalink
Merge pull request #3 from alan-wu/main
Browse files Browse the repository at this point in the history
Add new yaml file for github action.
  • Loading branch information
alan-wu authored May 26, 2023
2 parents 3e4513f + 4dd008b commit 1e9cd0a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build_and_release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# This workflow will build, run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages

name: MapIntegratedVuer Release

on:
workflow_dispatch:
inputs:
name:
type: choice
description: What type of releases
options:
- beta
- patch
- minor

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12.13.0
- run: npm install
- run: npm run build-bundle

test:
needs: build
runs-on: ubuntu-latest
env:
VUE_APP_ALGOLIA_KEY: ${{secrets.algolia_key}}
VUE_APP_ALGOLIA_ID: ${{secrets.algolia_id}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 12.13.0
- run: npm run test-unit
- run: npm run cypress run-ct

0 comments on commit 1e9cd0a

Please sign in to comment.