File tree Expand file tree Collapse file tree 5 files changed +39
-98
lines changed
Expand file tree Collapse file tree 5 files changed +39
-98
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Linting
1+ name : ⚙️ Linting
22
33on :
44 push :
99 pull_request :
1010 branches :
1111 - main
12+ workflow_dispatch :
1213
1314permissions :
1415 contents : read
@@ -19,13 +20,6 @@ concurrency:
1920
2021jobs :
2122 linting :
22- name : ' Linting'
23- runs-on : ubuntu-latest
24- steps :
25- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
26- - uses : SocketDev/socket-packageurl-js/.github/actions/setup@7bbee47e4dbcce0c23237c2dd50f225487467ab3
27- with :
28- node-version : ' 22'
29-
30- - name : Run linting
31- run : pnpm run check-ci
23+ uses : SocketDev/socket-registry/.github/workflows/lint.yml@main
24+ with :
25+ node-version : ' 22'
Original file line number Diff line number Diff line change 1- name : Publish Packages to npm
1+ name : ⚙️ Provenance
22
33on :
4- workflow_dispatch :
5- inputs :
6- debug :
7- description : ' Enable debug output'
8- required : false
9- default : ' 0'
10- type : string
11- options :
12- - ' 0'
13- - ' 1'
4+ release :
5+ types : [created]
146
15- jobs :
16- build :
17- runs-on : ubuntu-latest
7+ permissions :
8+ contents : read
9+ id-token : write
1810
11+ jobs :
12+ provenance :
13+ uses : SocketDev/socket-registry/.github/workflows/provenance.yml@main
14+ with :
15+ node-version : ' 22'
16+ package-name : ' @socketregistry/packageurl-js'
17+ secrets :
18+ npm_token : ${{ secrets.NPM_TOKEN }}
1919 permissions :
2020 contents : read
21- id-token : write
22-
23- steps :
24- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
25- - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0
26- with :
27- node-version : ' 22'
28- registry-url : ' https://registry.npmjs.org'
29- cache : pnpm
30- scope : ' @socketregistry'
31- - run : npm install -g pnpm@latest
32- - run : pnpm install
33- - run : pnpm test
34- - run : pnpm publish --provenance --access public --no-git-checks
35- env :
36- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
37- SOCKET_CLI_DEBUG : ${{ inputs.debug }}
38- - run : pnpm access set mfa=automation @socketregistry/packageurl-js
39- env :
40- NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
41- SOCKET_CLI_DEBUG : ${{ inputs.debug }}
21+ id-token : write
Original file line number Diff line number Diff line change 1- name : CI
1+ name : ⚙️ Tests
22
33on :
44 push :
@@ -19,18 +19,14 @@ concurrency:
1919 cancel-in-progress : true
2020
2121jobs :
22- test :
23- name : ' Tests'
24- runs-on : ${{ matrix.os }}
22+ test-matrix :
2523 strategy :
2624 matrix :
25+ node-version : [20, 22, 24]
2726 os : [ubuntu-latest, windows-latest]
28- node-version : [18, 20, 22, 24]
29- steps :
30- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
31- - uses : SocketDev/socket-packageurl-js/.github/actions/setup@7bbee47e4dbcce0c23237c2dd50f225487467ab3
32- with :
33- node-version : ${{ matrix.node-version }}
34-
35- - name : Run tests
36- run : pnpm run test
27+ name : Test Node ${{ matrix.node-version }} on ${{ matrix.os }}
28+ uses : SocketDev/socket-registry/.github/workflows/test.yml@main
29+ with :
30+ node-version : ' ${{ matrix.node-version }}'
31+ os : ${{ matrix.os }}
32+ timeout-minutes : 10
Original file line number Diff line number Diff line change 1- name : Type Checks
1+ name : ⚙️ Types
22
33on :
44 push :
99 pull_request :
1010 branches :
1111 - main
12+ workflow_dispatch :
1213
1314permissions :
1415 contents : read
1516
16- jobs :
17- type-check :
18- name : ' Type Check'
19- runs-on : ubuntu-latest
20- steps :
21- - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
22- - uses : SocketDev/socket-packageurl-js/.github/actions/setup@7bbee47e4dbcce0c23237c2dd50f225487467ab3
23- with :
24- node-version : ' 22'
17+ concurrency :
18+ group : ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
19+ cancel-in-progress : true
2520
26- - name : Run type check
27- run : pnpm run check:tsc
21+ jobs :
22+ types :
23+ uses : SocketDev/socket-registry/.github/workflows/types.yml@main
24+ with :
25+ node-version : ' 22'
You can’t perform that action at this time.
0 commit comments