chore: remove cross-fetch for security #578
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: Build and Publish | |
on: | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
jobs: | |
publish: | |
runs-on: | |
ubuntu-latest # For a list of available runner types, refer to | |
# https://help.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idruns-on | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
# Start npm/platform tasks | |
- uses: volta-cli/action@v1 | |
- name: Install and Test | |
env: | |
CI: true | |
run: | | |
npm ci | |
npm run build | |
npm test |