Skip to content

chore: fix elsint errors #182

chore: fix elsint errors

chore: fix elsint errors #182

Workflow file for this run

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 }}