Skip to content

Reverting to BOT token #525

Reverting to BOT token

Reverting to BOT token #525

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version-file: .nvmrc
cache: npm
- name: Install dependencies
run: npm install
- name: Run linters
run: npm run lint -- --no-fix
- name: Start services
run: npm run start:services
- name: Run tests
run: |
until pg_isready -h localhost -p 5400; do sleep 0.1; done
npm run test
- name: Stop services
if: always()
run: npm run stop:services
release:
needs: build
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.NIO_BOT_TOKEN }}
- name: Bump version
uses: TriPSs/conventional-changelog-action@v5
id: version
with:
github-token: ${{ secrets.NIO_BOT_TOKEN }}
git-user-name: GitHub Actions
git-user-email: [email protected]
version-file: package.json,package-lock.json
version-path: version
preset: conventionalcommits
output-file: false
skip-on-empty: false
- name: Set new commit hash
run: echo "SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Create release
uses: ncipollo/release-action@v1
if: ${{ steps.version.outputs.skipped == 'false' }}
with:
token: ${{ secrets.NIO_BOT_TOKEN }}
tag: ${{ steps.version.outputs.tag }}
name: ${{ steps.version.outputs.tag }}
body: ${{ steps.version.outputs.clean_changelog }}
commit: ${{ env.SHA }}