[Snyk] Upgrade: lodash, jsonpath, , , chalk, dockerode, fs-extra, generate-password, open, ora, puppeteer, tar, tslib #96
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 | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: '12' | |
- name: Verify | |
run: | | |
npm install | |
npm test | |
npm run build | |
release: | |
if: ${{ github.event_name == 'push' }} | |
needs: verify | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
# Drafts your next Release notes as Pull Requests are merged into "master" | |
- name: Create release | |
id: create-release | |
uses: release-drafter/release-drafter@v5 | |
with: | |
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml | |
config-name: release-drafter.yaml | |
publish: false | |
prerelease: false | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- uses: actions/setup-node@v2-beta | |
with: | |
node-version: '12' | |
- name: Update package.json | |
run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "GitHub Action" | |
npm version ${{ steps.create-release.outputs.tag_name }} | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
- uses: eregon/publish-release@v1 | |
env: | |
GITHUB_TOKEN: ${{ secrets.TOKEN }} | |
with: | |
release_id: ${{ steps.create-release.outputs.id }} |