Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
fix: Run with Docker instead of Node.js
Browse files Browse the repository at this point in the history
This action requires Node.js 14, but Node.js 12 is the currently-supported version. Related: actions/runner#772
  • Loading branch information
smockle committed Jan 5, 2021
1 parent e225513 commit 15104c0
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
16 changes: 16 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM node:14-slim

LABEL name="action-package-audit"
LABEL maintainer="Clay Miller <[email protected]>"
LABEL version="1.0.0"
LABEL repository="https://github/smockle/action-package-audit"
LABEL homepage="https://github/smockle/action-package-audit"

LABEL com.github.actions.name="Package Audit"
LABEL com.github.actions.description="Requires 2FA for publishing an npm org’s packages"
LABEL com.github.actions.icon="shield"
LABEL com.github.actions.color="blue"

COPY run.mjs /run.mjs
COPY index.mjs /index.mjs
ENTRYPOINT ["node", "/index.mjs"]
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: "action-package-audit"
author: "smockle"
description: "Requires 2FA for publishing an npm org’s packages."
runs:
using: "node14"
image: "index.mjs"
using: "docker"
image: "Dockerfile"
branding:
icon: "shield"
color: "blue"

0 comments on commit 15104c0

Please sign in to comment.