Skip to content
This repository has been archived by the owner on Apr 15, 2023. It is now read-only.

Restore Node 12 support #51

Merged
merged 2 commits into from
Oct 4, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@ outputs:
skipped:
description: Will be set to true if skip-on-empty is enabled and a release was not created, false otherwise
runs:
using: 'node16'
using: 'node12'
main: 'distribution/index.js'
62 changes: 26 additions & 36 deletions distribution/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions generate-release-notes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {promisify} from 'node:util';
import {execFile} from 'node:child_process';
import process from 'node:process';
import {promisify} from 'util';
import {execFile} from 'child_process';
import process from 'process';

const execFilePromised = promisify(execFile);

Expand Down
6 changes: 3 additions & 3 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import process from 'node:process';
import {promisify} from 'node:util';
import {execFile} from 'node:child_process';
import process from 'process';
import {promisify} from 'util';
import {execFile} from 'child_process';
import {getOctokit, context} from '@actions/github';
import core from '@actions/core';
import {generateReleaseNotes} from './generate-release-notes.js';
Expand Down
8 changes: 5 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "release-with-changelog",
"version": "1.0.0",
"private": true,
"description": "Create a GitHub relase with changelog for every tag you push",
"type": "module",
"main": "distribution/index.js",
Expand Down Expand Up @@ -36,7 +35,10 @@
],
"ignore": [
"distribution"
]
],
"rule": {
"unicorn/prefer-node-protocol": "off"
}
},
"jest": {
"transform": {}
Expand Down