Skip to content

Merge pull request #22 from tomasAlabes/dependabot/npm_and_yarn/json5… #21

Merge pull request #22 from tomasAlabes/dependabot/npm_and_yarn/json5…

Merge pull request #22 from tomasAlabes/dependabot/npm_and_yarn/json5… #21

Workflow file for this run

name: Release
on:
push:
branches: [ master ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn --frozen-lockfile
- run: yarn test
publish:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- run: yarn --frozen-lockfile
- uses: fregante/setup-git-user@v1
- run: yarn release
- run: git push --follow-tags origin master
- uses: JS-DevTools/npm-publish@v1
with:
check-version: true
token: ${{ secrets.NPM_TOKEN }}