Skip to content

1.0.1

1.0.1 #289

Workflow file for this run

name: CI
on:
push:
workflow_dispatch:
jobs:
jslint:
name: Eslint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm i -g pnpm
- run: pnpm i --no-optional
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
- run: pnpm i eslint eslint-plugin-node
- run: pnpm run lint
lualint:
name: Luacheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Danielv123/actions-luacheck@patch-1
with:
files: module/
annotate: "error"
publish:
needs: [jslint, lualint]
name: "Publish to npm"
runs-on: ubuntu-latest
if: github.ref_type == 'tag' && startsWith(github.ref_name, 'v')
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.x
- run: npm i -g pnpm
- run: pnpm i --no-optional
- run: pnpm run prepare
- run: pnpm publish --access public --no-git-checks
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}