Skip to content

Commit

Permalink
feat: run as docker action on node:18-alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
ph-fritsche committed Mar 23, 2023
1 parent fee1fe8 commit 0ad3e44
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 3 deletions.
8 changes: 8 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM node:18-alpine

RUN apk add git \
&& git config --system --add safe.directory /github/workspace

COPY build /action-release

ENTRYPOINT ["node", "/action-release/index.js"]
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ branding:
icon: arrow-up-circle
color: green
runs:
using: node16
main: build/index.js
using: docker
image: Dockerfile
inputs:
debug:
description: debug
Expand Down
1 change: 1 addition & 0 deletions build/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"type": "commonjs"}
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import { gitConfig } from './util/gitConfig'

export default async function run(env = process.env): Promise<void> {
try {
const packages: string[] = ['semantic-release']
const packages: string[] = ['semantic-release', 'debug']

const config = getConfig(core.getInput('config', { required: false}), defaultConfig, packages)
const plugins: PluginSpec[] = Array.from(config.plugins ?? [])
Expand Down

0 comments on commit 0ad3e44

Please sign in to comment.