Skip to content

Commit

Permalink
Merge pull request #60 from crazy-max/node-16
Browse files Browse the repository at this point in the history
Node 16 as default runtime
  • Loading branch information
crazy-max authored May 6, 2022
2 parents 4c4648c + cdfe7ba commit 46924d8
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ inputs:
required: false

runs:
using: 'node12'
using: 'node16'
main: 'dist/index.js'
post: 'dist/index.js'
2 changes: 1 addition & 1 deletion dev.Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1

ARG NODE_VERSION=12
ARG NODE_VERSION=16

FROM node:${NODE_VERSION}-alpine AS base
RUN apk add --no-cache cpio findutils git
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,11 @@ async function cleanup(): Promise<void> {
if (!stateHelper.cleanup) {
return;
}
core.info(`Removing ${path.join(os.homedir(), '.config', 'dagger')}`);
fs.rmdirSync(path.join(os.homedir(), '.config', 'dagger'), {recursive: true});
const daggerHome = path.join(os.homedir(), '.config', 'dagger');
if (fs.existsSync(daggerHome)) {
core.info(`Removing ${daggerHome}`);
fs.rmSync(daggerHome, {recursive: true});
}
}

if (!stateHelper.IsPost) {
Expand Down

0 comments on commit 46924d8

Please sign in to comment.