Skip to content

release

release #1

Workflow file for this run

name: release
on:
schedule:
- cron: '0 1 * * *'
workflow_dispatch:
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_ADMIN_TOKEN }}
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
always-auth: true
registry-url: https://registry.npmjs.org
- name: Setup Git
run: |
git config --local user.name "Artem Zakharchenko"
git config --local user.email "[email protected]"
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Tests
run: npm test
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GH_ADMIN_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}