Skip to content

fix

fix #44

Workflow file for this run

name: NPM Publish
on:
push:
branches:
- master
jobs:
Test:
name: Tests
strategy:
matrix:
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
node: ['18']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: ${{ matrix.node }}
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Run Tests
run: npm run test
Publish:
name: NPM Publish
runs-on: ubuntu-latest
needs: [Test]
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_AUTHOR_NAME: 'KJDev-Bots'
GIT_COMMITTER_NAME: 'KJDev-Bots'
GIT_AUTHOR_EMAIL: '[email protected]'
GIT_COMMITTER_EMAIL: '[email protected]'
run: npx semantic-release