fix: add package.json for ci release (#13) #2
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 | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
release-and-push: | |
name: Release And Push | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: -1 | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Fetch Previous version | |
id: get-previous-tag | |
uses: actions-ecosystem/[email protected] | |
- name: Release | |
run: yarn global add [email protected] && semantic-release | |
env: | |
GH_TOKEN: ${{ secrets.GH_BOT_TOKEN }} |