Skip to content

[Snyk] Upgrade tslib from 2.0.0 to 2.6.2 #91

[Snyk] Upgrade tslib from 2.0.0 to 2.6.2

[Snyk] Upgrade tslib from 2.0.0 to 2.6.2 #91

Workflow file for this run

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 "action@github.com"
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 }}