Merge pull request #27 from zhavir/implement-personal-portfolio #23
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: Semantic release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 21 | |
- name: Install dependencies | |
run: npm install | |
- name: Check indentation and lint | |
run: npm run check | |
- name: Build app | |
run: npm run build | |
- name: Semantic release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} | |
run: npm run release |