Skip to content

Commit c0e0c77

Browse files
authored
feat: 2fa on publish (#8)
1 parent 8e48c3b commit c0e0c77

File tree

4 files changed

+27
-46
lines changed

4 files changed

+27
-46
lines changed

.github/workflows/npm-release.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: Publish package
2+
on:
3+
release:
4+
types: [created]
5+
6+
permissions:
7+
id-token: write
8+
contents: read
9+
10+
jobs:
11+
publish:
12+
uses: expressjs/ci-workflows/.github/workflows/publish.yaml@release-reusable-action
13+
secrets:
14+
NPM_PUBLISH: ${{ secrets.NPM_PUBLISH }}

.github/workflows/pr-audit.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
name: Audit PR
2+
on:
3+
push:
4+
5+
permissions:
6+
id-token: write
7+
contents: read
8+
9+
jobs:
10+
tests:
11+
uses: expressjs/ci-workflows/.github/workflows/tests.yaml@release-reusable-action

.github/workflows/publish.yaml

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

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Demo of a secure setup to automatically publish on npm",
55
"main": "index.js",
66
"scripts": {
7-
"test": "echo \"Error: no test specified\" && exit 1"
7+
"test": "echo test",
8+
"lint": "echo lint"
89
},
910
"repository": {
1011
"type": "git",

0 commit comments

Comments
 (0)