build(deps): Bump semver from 6.3.0 to 6.3.1 (#704) #46
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
# build.yml | |
# checks and test build on push and pull request to master branch | |
# creates a pre-release on push to master | |
name: build | |
on: | |
push: | |
branches: | |
- "master" | |
pull_request: | |
branches: | |
- "master" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
cache: "yarn" | |
- name: Install dependencies | |
run: | | |
yarn install | |
- name: Code Format checks | |
run: | | |
yarn run prettier:check | |
- name: Build | |
run: | | |
yarn run build | |
- name: zip to hypercrx.zip | |
run: zip release/hypercrx.zip -r build/* | |
- name: Check file existence | |
id: check_files | |
uses: andstor/file-existence-action@v1 | |
with: | |
files: "release/hypercrx.crx" | |
- name: Pre-Release | |
if: ${{ steps.check_files.outputs.files_exists == 'true' && github.event_name == 'push' }} | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Development Build" | |
files: | | |
release/hypercrx.* |