Skip to content

Commit

Permalink
Merge pull request #7 from AppMonet/upgrade_node_version
Browse files Browse the repository at this point in the history
upgrade to node version 20
  • Loading branch information
jose96043 authored Jul 11, 2024
2 parents eedf7bf + 094a368 commit 63419d2
Show file tree
Hide file tree
Showing 5,022 changed files with 64 additions and 375,328 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
2 changes: 1 addition & 1 deletion .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
node-version: 20
registry-url: https://registry.npmjs.org/
# - run: npm ci
- name: Bump version
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ typings/

# DynamoDB Local files
.dynamodb/

# Node module
node_modules/
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
nodejs 20.9.0
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ outputs:
prefix:
description: Prefix if set
runs:
using: "node12"
using: "node20"
main: "lib/main.js"
# [bump]
# 2.0.56 // TODO regex match the rag
Expand Down
6 changes: 3 additions & 3 deletions lib/commit.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
const exec_1 = require("@actions/exec");
const core = __importStar(require("@actions/core"));
const support_1 = require("./support");
exports.default = ({ USER_NAME, USER_EMAIL, MESSAGE, GITHUB_TOKEN, tagName, tagMsg, branch, }) => __awaiter(void 0, void 0, void 0, function* () {
exports.default = (_a) => __awaiter(void 0, [_a], void 0, function* ({ USER_NAME, USER_EMAIL, MESSAGE, GITHUB_TOKEN, tagName, tagMsg, branch, }) {
try {
if (!process.env.GITHUB_TOKEN) {
console.log('missing required env vars, skipping commit creation');
Expand Down Expand Up @@ -76,8 +76,8 @@ exports.default = ({ USER_NAME, USER_EMAIL, MESSAGE, GITHUB_TOKEN, tagName, tagM
process.exit(1);
}
});
function push({ branch, options }) {
return __awaiter(this, void 0, void 0, function* () {
function push(_a) {
return __awaiter(this, arguments, void 0, function* ({ branch, options }) {
function fn(bail) {
return __awaiter(this, void 0, void 0, function* () {
yield (0, exec_1.exec)('git', 'config pull.rebase false'.split(' '), options);
Expand Down
7 changes: 3 additions & 4 deletions lib/createAnnotation.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createAnnotations = void 0;
exports.createAnnotations = createAnnotations;
const github = __importStar(require("@actions/github"));
function createAnnotations({ githubToken, newVersion, linesReplaced = [], }) {
return __awaiter(this, void 0, void 0, function* () {
function createAnnotations(_a) {
return __awaiter(this, arguments, void 0, function* ({ githubToken, newVersion, linesReplaced = [], }) {
try {
const octokit = new github.GitHub(githubToken);
// const now = new Date().toISOString()
Expand Down Expand Up @@ -63,7 +63,6 @@ function createAnnotations({ githubToken, newVersion, linesReplaced = [], }) {
}
});
}
exports.createAnnotations = createAnnotations;
const getSha = (context) => {
if (context.eventName === 'pull_request') {
return context.payload.pull_request.head.sha;
Expand Down
11 changes: 5 additions & 6 deletions lib/createTag.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
});
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.createTag = void 0;
exports.createTag = createTag;
const core = __importStar(require("@actions/core"));
const github = __importStar(require("@actions/github"));
function createTag({ tagName, tagMsg = '' }) {
var _a;
return __awaiter(this, void 0, void 0, function* () {
function createTag(_a) {
return __awaiter(this, arguments, void 0, function* ({ tagName, tagMsg = '' }) {
var _b;
if (!process.env.GITHUB_WORKSPACE || !process.env.GITHUB_REPOSITORY) {
console.log('not in Github Action, skipping tag creation with github api');
return;
Expand All @@ -51,7 +51,7 @@ function createTag({ tagName, tagMsg = '' }) {
// Check for existing tag
const git = new github.GitHub(process.env.GITHUB_TOKEN);
const owner = process.env.GITHUB_REPOSITORY_OWNER;
const repo = (_a = process.env.GITHUB_REPOSITORY) === null || _a === void 0 ? void 0 : _a.split('/').pop();
const repo = (_b = process.env.GITHUB_REPOSITORY) === null || _b === void 0 ? void 0 : _b.split('/').pop();
const tags = yield git.repos.listTags({
owner,
repo,
Expand Down Expand Up @@ -81,4 +81,3 @@ function createTag({ tagName, tagMsg = '' }) {
return { url: newReference.data.url };
});
}
exports.createTag = createTag;
4 changes: 2 additions & 2 deletions lib/support.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.retry = exports.capitalize = exports.replacePattern = exports.versionRegex = void 0;
exports.capitalize = exports.replacePattern = exports.versionRegex = void 0;
exports.retry = retry;
const fs = __importStar(require("fs"));
const retry_1 = __importDefault(require("retry"));
const smart_glob_1 = require("smart-glob");
Expand Down Expand Up @@ -132,4 +133,3 @@ function retry(fn, opts = defaultOpts) {
}
return new Promise(run);
}
exports.retry = retry;
1 change: 0 additions & 1 deletion node_modules/.bin/_mocha

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/esparse

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/esvalidate

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/flat

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/he

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/js-yaml

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/mocha

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/semver

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sucrase

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/sucrase-node

This file was deleted.

1 change: 0 additions & 1 deletion node_modules/.bin/which

This file was deleted.

Loading

0 comments on commit 63419d2

Please sign in to comment.