Skip to content

Commit 610ae06

Browse files
authored
GitHub actions (#29)
* Fixing eslint * Release workflow * Adjust actions
1 parent de07511 commit 610ae06

File tree

2 files changed

+40
-1
lines changed

2 files changed

+40
-1
lines changed

.github/workflows/release.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Release and publish the package
2+
on:
3+
push:
4+
tags:
5+
- "v*"
6+
7+
permissions:
8+
contents: write
9+
10+
jobs:
11+
release-npmjs:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
# Defaults to the user or organization that owns the workflow file
20+
scope: '@traut'
21+
- run: yarn
22+
- run: yarn npm publish
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
25+
release-github:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: '20.x'
32+
registry-url: 'https://npm.pkg.github.com'
33+
# Defaults to the user or organization that owns the workflow file
34+
scope: '@traut'
35+
- run: yarn
36+
- run: yarn npm publish
37+
env:
38+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

eslint.config.mjs

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,10 @@ export default [...compat.extends("google"), {
2929
"space-before-function-paren": "off",
3030
"operator-linebreak": ["error", "before"],
3131
"require-jsdoc": "off",
32+
"valid-jsdoc": "off",
3233

3334
"max-len": ["error", {
3435
code: 100,
3536
}],
3637
},
37-
}];
38+
}];

0 commit comments

Comments
 (0)