Merge pull request #34 from StateFarmIns/dependabot/npm_and_yarn/axio… #37
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 Release | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build: | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
- name: NPM Install | |
run: | | |
yarn | |
yarn build | |
- name: NPM Test | |
run: | | |
yarn test | |
yarn mutate | |
# Semantic Tag | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: | | |
yarn add @semantic-release/github --dev | |
npx semantic-release |