generated from actions/typescript-action
-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: Remove deprecated option * chore: Update to v2 - Replace Yarn with PNPM - Update Docker base image - Transpile to ESM - Replace Jest with Vitest (wip) * chore: Remove Husky hook * chore: Build on PRs * chore: Install git * chore: Safelist the GHA workspace directory * chore: Use standard base image * chore: Workdir & mount point * chore: Dubious ownership needs to be fixed at runtime * chore: Formatting * chore: Update dependencies * chore: Dual push to GHCR * chore: Add OCI labels * chore: Follow Docker docs for multi-registry * chore: Simplify git tag * fix: Defaults for boolean inputs * doc: Update latest * chore: Add funding metadata
- Loading branch information
Showing
14 changed files
with
3,295 additions
and
5,371 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
github: [franky47] | ||
liberapay: francoisbest | ||
custom: ['https://paypal.me/francoisbest?locale.x=fr_FR'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,29 @@ | ||
FROM node:16-bullseye AS builder | ||
FROM node:20-slim AS builder | ||
|
||
WORKDIR /action | ||
|
||
COPY package.json yarn.lock ./ | ||
COPY package.json pnpm-lock.yaml ./ | ||
|
||
RUN yarn | ||
RUN corepack enable | ||
RUN pnpm install | ||
COPY src ./src | ||
COPY tsconfig.json ./ | ||
RUN yarn build | ||
RUN pnpm build | ||
RUN rm -rf node_modules | ||
RUN yarn install --production | ||
RUN pnpm install --frozen-lockfile --prod | ||
|
||
# --- | ||
|
||
FROM node:16-bullseye AS final | ||
FROM node:20-slim AS final | ||
|
||
COPY --from=builder /action /action | ||
RUN apt update && apt install -y git | ||
|
||
# Provide defaults for boolean inputs so the parser doesn't complain | ||
ENV INPUT_QUIET false | ||
ENV INPUT_FORCE false | ||
|
||
COPY --from=builder /action/package.json /action/package.json | ||
COPY --from=builder /action/node_modules /action/node_modules | ||
COPY --from=builder /action/dist /action/dist | ||
|
||
CMD node /action/dist/main.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.