Skip to content

Commit 7ecfa81

Browse files
committed
Add socket registry files
1 parent 5888491 commit 7ecfa81

18 files changed

+364
-253
lines changed

.github/dependabot.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
schedule:
6+
interval: "weekly"
7+
day: "monday"
8+
- package-ecosystem: "npm"
9+
directory: "/"
10+
schedule:
11+
interval: "weekly"
12+
day: "monday"

.github/workflows/ci.yaml

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

.github/workflows/lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Linting
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
linting:
22+
name: "Linting"
23+
uses: SocketDev/workflows/.github/workflows/reusable-base.yml@master
24+
with:
25+
no-lockfile: true
26+
npm-test-script: 'check'

.github/workflows/provenance.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Publish Packages to npm
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
permissions:
11+
contents: read
12+
id-token: write
13+
14+
steps:
15+
- uses: actions/checkout@v4
16+
- uses: actions/setup-node@v4
17+
with:
18+
node-version: '20'
19+
registry-url: 'https://registry.npmjs.org'
20+
cache: npm
21+
scope: "@socketregistry"
22+
- run: npm install -g npm@latest
23+
- run: npm test
24+
- run: npm publish --provenance --tag latest --access public
25+
- run: npm access set mfa=automation @socketregistry/packageurl-js
26+
env:
27+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
permissions:
14+
contents: read
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
18+
cancel-in-progress: true
19+
20+
jobs:
21+
test:
22+
name: "Tests"
23+
uses: SocketDev/workflows/.github/workflows/reusable-base.yml@master
24+
with:
25+
no-lockfile: true
26+
npm-test-script: 'test'
27+
node-versions: '18,20,22'
28+
os: 'ubuntu-latest,windows-latest'

.github/workflows/types.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Type Checks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
tags:
8+
- '*'
9+
pull_request:
10+
branches:
11+
- main
12+
13+
permissions:
14+
contents: read
15+
16+
jobs:
17+
type-check:
18+
uses: SocketDev/workflows/.github/workflows/type-check.yml@master
19+
with:
20+
no-lockfile: true
21+
ts-versions: ${{ github.event.schedule && 'next' || '5.6,next' }}
22+
ts-libs: 'dom,esnext'

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ Thumbs.db
88
/npm-debug.log
99
/yarn.lock
1010
**/node_modules
11+
/*.tsbuildinfo

.prettierignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
.github/
22
*.json
3-
*.md

.travis.yml

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

CHANGELOG.md

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

0 commit comments

Comments
 (0)