Skip to content

Commit b44ac4f

Browse files
committed
modernization
1 parent f4c89ba commit b44ac4f

21 files changed

+2822
-2040
lines changed

.eslintrc.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/workflows/publish.yml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Publish
2+
on:
3+
push:
4+
paths:
5+
- 'package.json'
6+
branches: [ "master" ]
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
contents: read
12+
packages: write
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: check version
16+
id: check
17+
uses: EndBug/version-check@v2
18+
- name: No version update in package.json
19+
if: steps.check.outputs.changed != 'true'
20+
run: |
21+
echo "Error: ${{ steps.check.outputs.version }} is not new. Now exiting."
22+
exit 1
23+
- uses: actions/setup-node@v3
24+
with:
25+
node-version: 22
26+
registry-url: 'https://registry.npmjs.org'
27+
- name: Install dependencies
28+
run: npm ci
29+
- name: Build project
30+
run: npm run build
31+
- name: Publish to npm
32+
run: npm publish
33+
env:
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)