Skip to content

Commit 94841b5

Browse files
authored
Merge pull request #7 from nodenv/test-workflow
standard test workflow
2 parents 3e85879 + 22a179b commit 94841b5

File tree

5 files changed

+71
-5
lines changed

5 files changed

+71
-5
lines changed

.github/workflows/release.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
name: Release
2+
on:
3+
push: { tags: 'v[0-9]+.[0-9]+.[0-9]+*' }
4+
permissions: {}
5+
6+
jobs:
7+
release:
8+
permissions: {contents: write, id-token: write}
9+
uses: nodenv/.github/.github/workflows/release.yml@v5
10+
secrets: inherit

.github/workflows/test.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Test
2+
on:
3+
push:
4+
pull_request:
5+
schedule: [{ cron: "0 0 10 * *" }] # monthly https://crontab.guru/#0_0_10_*_*
6+
workflow_dispatch:
7+
8+
permissions: {}
9+
10+
jobs:
11+
test:
12+
uses: nodenv/.github/.github/workflows/test.yml@v5
13+
with: { npm: false, superlinter: false }
14+
permissions:
15+
contents: read
16+
packages: read
17+
id-token: write
18+
security-events: write
19+
statuses: write

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
2+
/package*/
3+
/tmp
4+
25
/nodenv-jetbrains-npm-*.tgz
3-
/package-lock.json
4-
/yarn.lock

package-lock.json

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,30 @@
55
"homepage": "https://github.com/nodenv/jetbrains-npm",
66
"license": "MIT",
77
"author": "Jason Karns <jason.karns@gmail.com> (http://jason.karns.name/)",
8+
"repository": {
9+
"type": "git",
10+
"url": "git+https://github.com/nodenv/jetbrains-npm.git"
11+
},
12+
"bugs": {
13+
"url": "https://github.com/nodenv/jetbrains-npm/issues"
14+
},
15+
"publishConfig": {
16+
"access": "public"
17+
},
18+
"directories": {
19+
"bin": "bin",
20+
"test": "test"
21+
},
22+
"files": [
23+
"bin"
24+
],
825
"scripts": {
9-
"postversion": "npm publish",
10-
"prepublishOnly": "npm run publish:github",
11-
"publish:github": "git push --follow-tags"
26+
"clean": "rm -rfv package*/ nodenv-jetbrains-npm-*.tgz",
27+
"start": "bin/npm-cli.js",
28+
"test": "echo NEEDS TESTS",
29+
"posttest": "npm run lint",
30+
"lint": "echo NEEDS LINT",
31+
"postversion": "git push --follow-tags"
1232
},
1333
"keywords": [
1434
"nodenv",

0 commit comments

Comments
 (0)