Skip to content

Commit 81ffdff

Browse files
committed
fix: eslint and update workflows
1 parent ed2b98a commit 81ffdff

File tree

5 files changed

+45
-53
lines changed

5 files changed

+45
-53
lines changed

.github/workflows/documentationjs.yml

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

.github/workflows/nodejs.yml renamed to .github/workflows/nodejs-ts.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ name: Node.js CI
22

33
on:
44
push:
5-
branches: master
5+
branches:
6+
- master
67
pull_request:
78

89
jobs:
910
nodejs:
11+
# Documentation: https://github.com/zakodium/workflows#nodejs-ci
1012
uses: zakodium/workflows/.github/workflows/nodejs.yml@nodejs-v1
1113
with:
1214
node-version-matrix: '[14, 16]'
13-
lint-check-types: true
15+
lint-check-types: true

.github/workflows/release.yml

Lines changed: 8 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -5,33 +5,12 @@ on:
55
branches:
66
- master
77

8-
env:
9-
NODE_VERSION: 14.x
10-
118
jobs:
12-
release-please:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Get package name
16-
run: echo "PACKAGE_NAME=$(jq .name package.json | tr -d '"')" >> $GITHUB_ENV
17-
- uses: GoogleCloudPlatform/release-please-action@v2
18-
id: release
19-
with:
20-
token: ${{ secrets.BOT_TOKEN }}
21-
release-type: node
22-
package-name: ${{ env.PACKAGE_NAME }}
23-
bump-minor-pre-major: Yes
24-
- uses: actions/checkout@v2
25-
# These if statements ensure that a publication only occurs when a new release is created
26-
if: ${{ steps.release.outputs.release_created }}
27-
- uses: actions/setup-node@v2
28-
with:
29-
node-version: ${{ env.NODE_VERSION }}
30-
registry-url: 'https://registry.npmjs.org'
31-
if: ${{ steps.release.outputs.release_created }}
32-
- run: npm install
33-
if: ${{ steps.release.outputs.release_created }}
34-
- run: npm publish --access public
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_BOT_TOKEN }}
37-
if: ${{ steps.release.outputs.release_created }}
9+
release:
10+
# Documentation: https://github.com/zakodium/workflows#release
11+
uses: zakodium/workflows/.github/workflows/release.yml@release-v1
12+
with:
13+
npm: true
14+
secrets:
15+
github-token: ${{ secrets.BOT_TOKEN }}
16+
npm-token: ${{ secrets.NPM_BOT_TOKEN }}

.github/workflows/typedoc.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Deploy TypeDoc on GitHub pages
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [published]
7+
8+
env:
9+
NODE_VERSION: 16.x
10+
ENTRY_FILE: 'src/index.ts'
11+
12+
jobs:
13+
deploy:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: actions/checkout@v2
17+
- uses: actions/setup-node@v2
18+
with:
19+
node-version: ${{ env.NODE_VERSION }}
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Build documentation
23+
uses: zakodium/typedoc-action@v2
24+
with:
25+
entry: ${{ env.ENTRY_FILE }}
26+
- name: Deploy to GitHub pages
27+
uses: JamesIves/github-pages-deploy-action@releases/v4
28+
with:
29+
token: ${{ secrets.BOT_TOKEN }}
30+
branch: gh-pages
31+
folder: docs
32+
clean: true

src/__tests__/ubiquitin.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Global spectra deconvolution ubiquitin', () => {
1212
it('HR mass spectra', () => {
1313
let spectrum = parseXY(
1414
readFileSync(`${__dirname}/data/ubiquitin.txt`, 'utf-8'),
15-
{ keepInfo: false }
15+
{ keepInfo: false },
1616
) as DataXY;
1717

1818
let noiseLevel = 0; // Stat.array.max(spectrum[1])*0.015;

0 commit comments

Comments
 (0)