Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/workflows/npm-release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Publish package
on:
release:
types: [created]

permissions:
id-token: write
contents: read

jobs:
publish:
uses: expressjs/ci-workflows/.github/workflows/publish.yaml@release-reusable-action
secrets:
NPM_PUBLISH: ${{ secrets.NPM_PUBLISH }}
11 changes: 11 additions & 0 deletions .github/workflows/pr-audit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: Audit PR
on:
push:

permissions:
id-token: write
contents: read

jobs:
tests:
uses: expressjs/ci-workflows/.github/workflows/tests.yaml@release-reusable-action
45 changes: 0 additions & 45 deletions .github/workflows/publish.yaml

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Demo of a secure setup to automatically publish on npm",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo test",
"lint": "echo lint"
},
"repository": {
"type": "git",
Expand Down