Skip to content

Commit 46adda7

Browse files
committed
Update github workflows
1 parent a8bfab0 commit 46adda7

File tree

4 files changed

+27
-28
lines changed

4 files changed

+27
-28
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Linting
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
tags:
88
- '*'
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212

1313
permissions:
1414
contents: read

.github/workflows/provenance.yml

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
1-
name: Publish Package to npmjs
1+
name: Publish Packages to npm
22

33
on:
4-
release:
5-
types: [created]
4+
workflow_dispatch:
65

76
jobs:
8-
build:
9-
runs-on: ubuntu-latest
7+
build:
8+
runs-on: ubuntu-latest
109

11-
permissions:
12-
contents: read
13-
id-token: write
10+
permissions:
11+
contents: read
12+
id-token: write
1413

15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-node@v4
18-
with:
19-
node-version: '20'
20-
registry-url: 'https://registry.npmjs.org'
21-
cache: npm
22-
scope: "@socketsecurity"
23-
- run: npm install -g npm@latest
24-
- run: npm ci
25-
- run: npm publish --access public
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
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: "@socketsecurity"
22+
- run: npm install -g npm@latest
23+
- run: npm ci
24+
- run: npm publish --provenance --access public
25+
env:
26+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/nodejs.yml renamed to .github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
name: Node CI
1+
name: CI
22

33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
tags:
88
- '*'
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212

1313
permissions:
1414
contents: read

.github/workflows/types.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ name: Type Checks
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
tags:
88
- '*'
99
pull_request:
1010
branches:
11-
- master
11+
- main
1212
schedule:
1313
- cron: '14 5 * * 1,3,5'
1414

0 commit comments

Comments
 (0)