chore: fix elsint errors #182
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: Release | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
release: | |
if: "!contains(github.event.head_commit.message, 'skip ci')" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Git checkout | |
uses: actions/checkout@v2 | |
with: | |
token: ${{ secrets.GIT_PERSONAL_TOKEN }} | |
- name: Install node | |
uses: actions/setup-node@v1 | |
with: | |
node-version: 20.x | |
- name: Install npm dependencies | |
run: npm install | |
- name: Build it | |
run: npm run-script build:prod | |
- name: Run tests | |
run: npm run test:withIts | |
- name: Update Badges | |
run: npm run badge-script | |
- name: Package | |
if: github.ref == 'refs/heads/main' | |
run: npm run semantic-release | |
env: | |
GITHUB_TOKEN: ${{ secrets.GIT_PERSONAL_TOKEN }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- name: Copy package json | |
if: github.ref == 'refs/heads/main' | |
working-directory: ./dist | |
run: | | |
git config --local user.email "martin@forsti.eu" | |
git config --local user.name "Martin Forstner" | |
git pull | |
mv -v package.json .. | |
git commit -am "Release script ran. Commit package.json [skip ci]" --allow-empty | |
- name: Push changes | |
if: github.ref == 'refs/heads/main' | |
uses: ad-m/github-push-action@master | |
with: | |
GITHUB_TOKEN: ${{ secrets.GIT_PERSONAL_TOKEN }} |