Skip to content

Build: add GitHub Actions workflow #3

Build: add GitHub Actions workflow

Build: add GitHub Actions workflow #3

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
build:
name: Release
runs-on: ubuntu-latest
steps:
- name: Git Checkout
uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22.x"
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: NPM install
run: npm ci
- name: Test
run: npm run test
- name: Compile
run: npm run compile
- name: Lint
run: npm run lint
- name: Configure Git
shell: bash
run: |
git config user.name "${{ github.actor }}"
git config user.email "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
- name: Release
run: npm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}